Skip to content

Commit

Permalink
Modify implementation of page widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
rayjasson98 committed Dec 28, 2020
1 parent 0c965c9 commit 8c07ed7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 18 deletions.
8 changes: 5 additions & 3 deletions lib/ui/IoT/IoT_monitoring_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ class IoTMonitoringPage extends TabPage {
}

class _IoTMonitoringPageState extends TabPageState<IoTMonitoringPage> {
@override
void dispose() => super.dispose();

@override
Widget build(BuildContext context) {
return super.build(context);
}

@override
Widget buildTabListView() {
return super.buildTabListView();
}
}
8 changes: 4 additions & 4 deletions lib/ui/diseases/disease_detection_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class DiseaseDetectionPage extends TabPage {

class _DiseaseDetectionPageState extends TabPageState<DiseaseDetectionPage> {
@override
void dispose() {
super.dispose();
Widget build(BuildContext context) {
return super.build(context);
}

@override
Widget build(BuildContext context) {
return super.build(context);
Widget buildTabListView() {
return super.buildTabListView();
}
}
8 changes: 4 additions & 4 deletions lib/ui/farm/farm_management_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class FarmManagementPage extends TabPage {

class _FarmManagementState extends TabPageState<FarmManagementPage> {
@override
void dispose() {
super.dispose();
Widget build(BuildContext context) {
return super.build(context);
}

@override
Widget build(BuildContext context) {
return super.build(context);
Widget buildTabListView() {
return super.buildTabListView();
}
}
5 changes: 0 additions & 5 deletions lib/ui/profile/user_profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ class UserProfilePage extends TabPage {
}

class _UserProfilePagePageState extends TabPageState<UserProfilePage> {
@override
void dispose() {
super.dispose();
}

@override
Widget build(BuildContext context) {
return super.build(context);
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/widgets/tab_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TabPageState<T extends TabPage> extends State<T>
backgroundColor: Colors.transparent,
body: Stack(
children: <Widget>[
_buildTabListView(),
buildTabListView(),
TabAppBar(
scrollController: _scrollController,
title: widget.pageTitle,
Expand All @@ -50,7 +50,7 @@ class TabPageState<T extends TabPage> extends State<T>
);
}

Widget _buildTabListView() {
Widget buildTabListView() {
return ListView.builder(
controller: _scrollController,
padding: EdgeInsets.only(
Expand Down

0 comments on commit 8c07ed7

Please sign in to comment.