diff --git a/lib/menu.dart b/lib/menu.dart index c24ae98..e3d267d 100644 --- a/lib/menu.dart +++ b/lib/menu.dart @@ -48,24 +48,31 @@ class _DrawerMenuState extends State with SettingsManagerMixin { ), ), ]), - body: Container( - color: Colors.black, - child: FutureBuilder>( - future: menuItems, - builder: (BuildContext context, AsyncSnapshot> snapshot) { - // If the data is correctly loaded, - // we render a `ReorderableListView` whose children are `MenuItem` tiles. - if (snapshot.hasData) { - List menuItemInfoList = snapshot.data!; - - return DrawerMenuTilesList(menuItemInfoList: menuItemInfoList); - } - - // While it's not loaded (error or waiting) - else { - return const SizedBox.shrink(); - } - })), + + body: Column( + children: [ + Expanded( + child: Container( + color: Colors.black, + child: FutureBuilder>( + future: menuItems, + builder: (BuildContext context, AsyncSnapshot> snapshot) { + // If the data is correctly loaded, + // we render a `ReorderableListView` whose children are `MenuItem` tiles. + if (snapshot.hasData) { + List menuItemInfoList = snapshot.data!; + + return DrawerMenuTilesList(menuItemInfoList: menuItemInfoList); + } + + // While it's not loaded (error or waiting) + else { + return const SizedBox.shrink(); + } + })), + ), + ], + ), ); } }