ui: Fix weird placement of the FAB

This might be caused due to some weird interaction between
FloatingActionButton and Visibility
This commit is contained in:
PapaTutuWawa 2022-08-27 22:37:35 +02:00
parent 40cb344e0d
commit d02a2e74b0

View File

@ -74,9 +74,8 @@ class ShareSelectionPage extends StatelessWidget {
); );
}, },
), ),
floatingActionButton: Visibility( floatingActionButton: state.selection.isNotEmpty ?
visible: state.selection.isNotEmpty, FloatingActionButton(
child: FloatingActionButton(
onPressed: () { onPressed: () {
context.read<ShareSelectionBloc>().add(SubmittedEvent()); context.read<ShareSelectionBloc>().add(SubmittedEvent());
}, },
@ -84,8 +83,8 @@ class ShareSelectionPage extends StatelessWidget {
Icons.send, Icons.send,
color: Colors.white, color: Colors.white,
), ),
), ) :
), null,
), ),
), ),
); );