Flutter align button to bottom of Drawer

后端 未结 6 590
慢半拍i
慢半拍i 2021-02-03 21:29

I\'m trying to have a Widget align to the bottom of my NavDrawer while still keeping a DrawerHeader and a list at the top of the Drawer. Here\'s what I\'m trying:



        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-03 22:22

    A simple approach would be to use Spacer() like:

    Scaffold(
      drawer: Drawer(
        child: Column(
          children: [
            Text('Top'),
            Spacer(), // use this
            Text('Bottom'),
          ],
        ),
      )
    )
    

提交回复
热议问题