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(
|
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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user