ui: Replace radio buttons with checkboxes

This commit is contained in:
PapaTutuWawa 2022-08-27 19:41:58 +02:00
parent 074381ff67
commit 5f087121a3

View File

@ -28,15 +28,15 @@ class ShareSelectionPage extends StatelessWidget {
onWillPop: () async { onWillPop: () async {
GetIt.I.get<ShareSelectionBloc>().add(ResetEvent()); GetIt.I.get<ShareSelectionBloc>().add(ResetEvent());
// Put the app back into the background... // Navigate to the conversations page...
await MoveToBackground.moveTaskToBack();
// ...and navigate to the conversations page
GetIt.I.get<navigation.NavigationBloc>().add( GetIt.I.get<navigation.NavigationBloc>().add(
navigation.PushedNamedAndRemoveUntilEvent( navigation.PushedNamedAndRemoveUntilEvent(
const navigation.NavigationDestination(conversationsRoute), const navigation.NavigationDestination(conversationsRoute),
(_) => false, (_) => false,
), ),
); );
// ...and put the app back into the background
await MoveToBackground.moveTaskToBack();
return false; return false;
}, },
@ -63,13 +63,10 @@ class ShareSelectionPage extends StatelessWidget {
maxTextWidth, maxTextWidth,
timestampNever, timestampNever,
false, false,
extra: isSelected ? extra: Checkbox(
Radio( value: isSelected,
value: true,
groupValue: true,
onChanged: (_) {}, onChanged: (_) {},
) : ),
null,
), ),
); );
}, },