Flutter align button to bottom of Drawer

后端 未结 6 655
慢半拍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:12

    I'd put it in a row and align all the stuff to bottom using crossAxisAlignment: CrossAxisAlignment.baseline

    Row(
                  mainAxisSize: MainAxisSize.max,
                  crossAxisAlignment: CrossAxisAlignment.baseline,
                  children: [
                    Text(
                      '12.00',
                      style: Theme.of(context).textTheme.headline2,
                      textAlign: TextAlign.start,
                    ),
                    Text(
                      'USD',
                      style: Theme.of(context).textTheme.bodyText2,
                      textAlign: TextAlign.start,
                    ),
                  ]),
    

提交回复
热议问题