Skip to content

Commit fd61b14

Browse files
[Update] - Updated develop_00 branch
1 parent dd6b310 commit fd61b14

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

lib/app_screens/chat/other_user_profile.dart

-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ class _OtherUserProfileState extends State<OtherUserProfile> {
5151
// )
5252
return Consumer<UserProvider>(
5353
builder: (context, userProfile, _) => CupertinoPageScaffold(
54-
navigationBar: const CupertinoNavigationBar(
55-
middle: Text('UserProfile')
56-
),
5754
child: Card(
5855
margin: const EdgeInsets.only(bottom: defaultPadding),
5956
color: deepPurpleAccent,

lib/body.dart

-4
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,11 @@ class _BodyState extends State<Body> {
5151
tabBuilder: (context, index) {
5252
switch (index) {
5353
case 0: return PrintValue(textLocation: getTitleText[0], index: index);
54-
// ignore: prefer_const_constructors
5554
case 1: return PrintValue(textLocation: getTitleText[1], index: index);
56-
// case 1: return PrintValue(textLocation: getTitleText[1], index: index);
5755
case 2: return PrintValue(textLocation: getTitleText[2], index: index);
5856
}
5957

6058
return PrintValue(textLocation: getTitleText[0], index: 0);
61-
// return PrintValue(
62-
// textLocation: getTitleText[0], index: 0);
6359
});
6460
}
6561

lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MyApp extends StatelessWidget {
3232
print("Name -> ${settings.name}");
3333

3434
if (pathElements[0] != '') return null;
35-
if (pathElements[1] == 'user') {
35+
if (pathElements[1] == 'profile') {
3636
String userId = pathElements[2];
3737
return CupertinoPageRoute(builder: ((context) => OtherUserProfile(userId: userId)), settings: settings);
3838
}

lib/widgets/custom/tile/user_tile.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ class UserTile extends StatelessWidget {
1515
Widget build(BuildContext context) {
1616
print('CheckCheck');
1717
return GestureDetector(
18+
behavior: HitTestBehavior.opaque,
1819
onTap:() {
1920
Provider.of<UserProvider>(context, listen: false).selectUser(findUser);
20-
Navigator.pushNamed(context, "/user/${findUser.userId}");
21+
Navigator.pushNamed(context, "/profile/${findUser.userId}");
2122
},
2223
child: Container(
2324
margin: const EdgeInsets.all(defaultPadding - 10),

0 commit comments

Comments
 (0)