ui: Replace radio buttons with checkboxes
This commit is contained in:
parent
074381ff67
commit
5f087121a3
@ -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,
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user