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:
parent
40cb344e0d
commit
d02a2e74b0
@ -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,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user