File tree Expand file tree Collapse file tree 3 files changed +35
-29
lines changed Expand file tree Collapse file tree 3 files changed +35
-29
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,16 @@ class SelectPresetDialog extends StatelessWidget {
22
22
content: Container (
23
23
width: MAX_TILE_DIALOG_WIDTH ,
24
24
height: MAX_DIALOG_HEIGHT ,
25
- child: PanelGrid (
26
- children: state
27
- .getByPresetType (presetType)
28
- .map ((preset) => PanelGridTile .idWithText (
29
- id: preset.id.id.toString (),
30
- text: preset.label ?? "" ,
31
- onTap: () => Navigator .of (context).pop (preset.id)))
32
- .toList ()),
25
+ child: SingleChildScrollView (
26
+ child: PanelGrid (
27
+ children: state
28
+ .getByPresetType (presetType)
29
+ .map ((preset) => PanelGridTile .idWithText (
30
+ id: preset.id.id.toString (),
31
+ text: preset.label ?? "" ,
32
+ onTap: () => Navigator .of (context).pop (preset.id)))
33
+ .toList ()),
34
+ ),
33
35
),
34
36
actions: [
35
37
PopupAction ("Cancel" , () => Navigator .of (context).pop ()),
Original file line number Diff line number Diff line change @@ -19,20 +19,22 @@ class SelectSequenceDialog extends StatelessWidget {
19
19
content: Container (
20
20
width: MAX_TILE_DIALOG_WIDTH ,
21
21
height: MAX_DIALOG_HEIGHT ,
22
- child: FutureBuilder (
23
- future: api.getSequences (),
24
- builder: (context, AsyncSnapshot <Sequences > data) {
25
- List <Sequence > sequences = data.hasData ? data.data! .sequences : [];
26
- sequences.sort ((lhs, rhs) => lhs.id - rhs.id);
22
+ child: SingleChildScrollView (
23
+ child: FutureBuilder (
24
+ future: api.getSequences (),
25
+ builder: (context, AsyncSnapshot <Sequences > data) {
26
+ List <Sequence > sequences = data.hasData ? data.data! .sequences : [];
27
+ sequences.sort ((lhs, rhs) => lhs.id - rhs.id);
27
28
28
- return PanelGrid (children: sequences
29
- .map ((s) => PanelGridTile .idWithText (
30
- id: s.id.toString (),
31
- text: s.name,
32
- onTap: () => Navigator .of (context).pop (s),
33
- ))
34
- .toList ());
35
- }),
29
+ return PanelGrid (children: sequences
30
+ .map ((s) => PanelGridTile .idWithText (
31
+ id: s.id.toString (),
32
+ text: s.name,
33
+ onTap: () => Navigator .of (context).pop (s),
34
+ ))
35
+ .toList ());
36
+ }),
37
+ ),
36
38
),
37
39
actions: [
38
40
PopupAction ("Cancel" , () => Navigator .of (context).pop ()),
Original file line number Diff line number Diff line change @@ -61,14 +61,16 @@ class _AssignFixturesToGroupDialogState extends State<AssignFixturesToGroupDialo
61
61
content: Container (
62
62
width: MAX_TILE_DIALOG_WIDTH ,
63
63
height: MAX_DIALOG_HEIGHT ,
64
- child: PanelGrid (
65
- children: widget.bloc.state.groups
66
- .map ((g) => PanelGridTile .idWithText (
67
- id: "G${g .id }" ,
68
- text: g.name,
69
- onTap: () => Navigator .of (context).pop (_InternalDialogResult (g)),
70
- ))
71
- .toList ())),
64
+ child: SingleChildScrollView (
65
+ child: PanelGrid (
66
+ children: widget.bloc.state.groups
67
+ .map ((g) => PanelGridTile .idWithText (
68
+ id: "G${g .id }" ,
69
+ text: g.name,
70
+ onTap: () => Navigator .of (context).pop (_InternalDialogResult (g)),
71
+ ))
72
+ .toList ()),
73
+ )),
72
74
actions: [
73
75
PopupAction ("Cancel" , () => Navigator .of (context).pop ()),
74
76
PopupAction ("New Group" , () => _newGroup (context))
You can’t perform that action at this time.
0 commit comments