How to add Multiple Floating button in Stack Widget in Flutter

后端 未结 7 1278
终归单人心
终归单人心 2021-02-04 03:09

In flutter one view over another view using Stack Widget. It\'s work fine. Now I need to added two floating button left and right side of bottom of screen. I added one button ri

相关标签:
7条回答
  • 2021-02-04 03:54
    floatingActionButton: Stack(
          children: <Widget>[
            Padding(padding: EdgeInsets.only(left:31),
            child: Align(
              alignment: Alignment.bottomLeft,
              child: FloatingActionButton(
                onPressed: picker,
                child: Icon(Icons.camera_alt),),
            ),),
    
            Align(
              alignment: Alignment.bottomRight,
              child: FloatingActionButton(
                onPressed: picker2,
              child: Icon(Icons.add_photo_alternate),),
            ),
          ],
        )
    
    0 讨论(0)
提交回复
热议问题