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:
@@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user