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