Skip to content

Commit 38e2754

Browse files
committed
Link more to children
1 parent dfabefe commit 38e2754

File tree

5 files changed

+31
-7
lines changed

5 files changed

+31
-7
lines changed

lib/basic.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Basic extends StatelessWidget {
7171
primaryColor: primaryColor,
7272
scaffoldBackgroundColor: desaturatedGreyColor,
7373
),
74-
home: AboutUsScreen(),
74+
home: MoreScreen(),
7575
debugShowCheckedModeBanner: false,
7676
);
7777
}

lib/screens/about/about_us_screen.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ class AboutUsScreen extends StatelessWidget {
4141
size: 17,
4242
),
4343
isIconSameSize: false,
44-
onTap: () {},
44+
onTap: () {
45+
Navigator.of(context).pop();
46+
},
4547
size: ButtonSize.big,
4648
text: 'Return',
4749
),

lib/screens/edit/edit_business_account_screen.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ class EditBusinessAccountScreen extends StatelessWidget {
4141
size: 17,
4242
),
4343
isIconSameSize: false,
44-
onTap: () {},
44+
onTap: () {
45+
Navigator.of(context).pop();
46+
},
4547
size: ButtonSize.big,
4648
text: 'Return',
4749
),

lib/screens/edit/edit_personal_account_screen.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ class EditPersonalAccountScreen extends StatelessWidget {
4141
size: 17,
4242
),
4343
isIconSameSize: false,
44-
onTap: () {},
44+
onTap: () {
45+
Navigator.of(context).pop();
46+
},
4547
size: ButtonSize.big,
4648
text: 'Return',
4749
),

lib/screens/more/more_screen.dart

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import 'package:basic/constants/color_constants.dart';
22
import 'package:basic/constants/textstyle_constants.dart';
3+
import 'package:basic/screens/about/about_us_screen.dart';
4+
import 'package:basic/screens/edit/edit_business_account_screen.dart';
5+
import 'package:basic/screens/edit/edit_personal_account_screen.dart';
36
import 'package:flutter/material.dart';
47

58
class MoreScreen extends StatelessWidget {
@@ -48,7 +51,12 @@ class MoreScreen extends StatelessWidget {
4851
Icons.arrow_forward_ios,
4952
size: 16,
5053
),
51-
onTap: () {},
54+
onTap: () {
55+
Navigator.of(context).push(
56+
MaterialPageRoute(builder: (BuildContext ctx) {
57+
return EditPersonalAccountScreen();
58+
}));
59+
},
5260
),
5361
Divider(height: 0),
5462
ListTile(
@@ -61,7 +69,12 @@ class MoreScreen extends StatelessWidget {
6169
Icons.arrow_forward_ios,
6270
size: 16,
6371
),
64-
onTap: () {},
72+
onTap: () {
73+
Navigator.of(context).push(
74+
MaterialPageRoute(builder: (BuildContext ctx) {
75+
return EditBusinessAccountScreen();
76+
}));
77+
},
6578
),
6679
],
6780
),
@@ -91,7 +104,12 @@ class MoreScreen extends StatelessWidget {
91104
Icons.arrow_forward_ios,
92105
size: 16,
93106
),
94-
onTap: () {},
107+
onTap: () {
108+
Navigator.of(context).push(
109+
MaterialPageRoute(builder: (BuildContext ctx) {
110+
return AboutUsScreen();
111+
}));
112+
},
95113
),
96114
Divider(height: 0),
97115
ListTile(

0 commit comments

Comments
 (0)