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