Skip to content

Commit

Permalink
Fix character button row
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed May 25, 2024
1 parent 0f17cca commit bc8a79d
Showing 1 changed file with 24 additions and 30 deletions.
54 changes: 24 additions & 30 deletions lib/ui/mobile/widgets/home_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,37 +160,31 @@ class _HomeDrawerState extends State<HomeDrawer> {
}

Widget characterButtonsRow(BuildContext context) {
return SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
FilledButton(
onPressed: () {
Navigator.pop(context); // Close the drawer
Navigator.pushNamed(
context,
'/character'
);
},
child: const Text(
"Customize"
),
),
FilledButton(
onPressed: () {
Navigator.pop(context); // Close the drawer
Navigator.pushNamed(
context,
'/characters'
);
},
child: const Text(
"Browse"
),
),
]
return ListTile(
leading: FilledButton(
onPressed: () {
Navigator.pop(context); // Close the drawer
Navigator.pushNamed(
context,
'/character'
);
},
child: const Text(
"Customize"
),
),
trailing: FilledButton(
onPressed: () {
Navigator.pop(context); // Close the drawer
Navigator.pushNamed(
context,
'/characters'
);
},
child: const Text(
"Browse"
),
)
);
}
}

0 comments on commit bc8a79d

Please sign in to comment.