-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
Two Flutter buttons named FloatingActionButton are overlapping when the screen is horizontal.
It was difficult to fix it in main.dart file because I've not worked with Flutter before.
floatingActionButton: Align(
// Align two buttons to right. Alignment to bottom doesn't work.
alignment: Alignment(1.0, 0),
child: Column(
// Align two buttons to bottom. There is no alignment to right.
mainAxisAlignment: MainAxisAlignment.end,
children: [
Padding(
// Set padding between buttons
padding: const EdgeInsets.only(bottom: 10.0),
// Use camera button
child: FloatingActionButton(
onPressed: (){
image_picker(0);
},
child: new Icon(Icons.camera_alt),
),
),
// Upload image button
FloatingActionButton(
onPressed: (){
image_picker(1);
},
child: new Icon(Icons.file_upload)
)
],
),
),
P.S. My version of your starup is here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels