Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
brim-borium committed Oct 5, 2024
1 parent 61f38a6 commit cf65716
Showing 1 changed file with 26 additions and 37 deletions.
63 changes: 26 additions & 37 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,44 +81,33 @@ class HomeState extends State<Home> {

Widget _buildBottomBar(BuildContext context) {
return BottomAppBar(
height: 125,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
SizedIconButton(
width: 50,
icon: Icons.queue_music,
onPressed: queue,
),
SizedIconButton(
width: 50,
icon: Icons.playlist_play,
onPressed: play,
),
SizedIconButton(
width: 50,
icon: Icons.repeat,
onPressed: toggleRepeat,
),
SizedIconButton(
width: 50,
icon: Icons.shuffle,
onPressed: toggleShuffle,
),
],
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
SizedIconButton(
width: 50,
icon: Icons.queue_music,
onPressed: queue,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
SizedIconButton(
width: 50,
onPressed: addToLibrary,
icon: Icons.favorite,
),
],
SizedIconButton(
width: 50,
icon: Icons.playlist_play,
onPressed: play,
),
SizedIconButton(
width: 50,
icon: Icons.repeat,
onPressed: toggleRepeat,
),
SizedIconButton(
width: 50,
icon: Icons.shuffle,
onPressed: toggleShuffle,
),
SizedIconButton(
width: 50,
onPressed: addToLibrary,
icon: Icons.favorite,
),
],
),
Expand Down

0 comments on commit cf65716

Please sign in to comment.