Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Aadeesh11 committed Dec 26, 2021
1 parent 40686ed commit b546475
Showing 1 changed file with 34 additions and 25 deletions.
59 changes: 34 additions & 25 deletions lib/views/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,32 +89,41 @@ class _MainScreenState extends State<MainScreen> with TickerProviderStateMixin {
mainAxisSize: MainAxisSize.max,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
HikeButton(
text: 'Create Hike',
textColor: Colors.white,
borderColor: Colors.white,
buttonColor: kYellow,
buttonWidth: 12,
onTap: () {
if (userConfig.currentUser.isGuest) {
navigationService.showSnackBar(
'You need to login with credentials to start a hike');
} else {
CreateJoinBeaconDialog.createHikeDialog(
context, model);
}
},
Expanded(
child: HikeButton(
buttonHeight: 32,
buttonWidth: 0,
text: 'Create Hike',
textColor: Colors.white,
borderColor: Colors.white,
buttonColor: kYellow,
onTap: () {
if (userConfig.currentUser.isGuest) {
navigationService.showSnackBar(
'You need to login with credentials to start a hike');
} else {
CreateJoinBeaconDialog.createHikeDialog(
context, model);
}
},
),
),
SizedBox(
width: 8,
),
HikeButton(
text: 'Join a Hike',
textColor: kYellow,
borderColor: kYellow,
buttonColor: Colors.white,
buttonWidth: 12,
onTap: () async {
CreateJoinBeaconDialog.joinBeaconDialog(
context, model);
},
Expanded(
child: HikeButton(
buttonHeight: 32,
buttonWidth: 0,
text: 'Join a Hike',
textColor: kYellow,
borderColor: kYellow,
buttonColor: Colors.white,
onTap: () async {
CreateJoinBeaconDialog.joinBeaconDialog(
context, model);
},
),
)
],
),
Expand Down

0 comments on commit b546475

Please sign in to comment.