Skip to content

Commit 205be05

Browse files
authored
Fix color picker dialog overflow (singerdmx#1251)
1 parent 6399cca commit 205be05

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/src/widgets/toolbar/color_button.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ class _ColorButtonState extends State<ColorButton> {
170170
child: Text('OK'.i18n)),
171171
],
172172
backgroundColor: Theme.of(context).canvasColor,
173-
content: SizedBox(
174-
height: 400,
173+
content: SingleChildScrollView(
175174
child: Column(
175+
mainAxisSize: MainAxisSize.min,
176176
children: [
177177
Row(
178178
children: [
@@ -192,8 +192,7 @@ class _ColorButtonState extends State<ColorButton> {
192192
child: Text('Color'.i18n)),
193193
],
194194
),
195-
Expanded(
196-
child: Column(children: [
195+
Column(children: [
197196
if (pickerType == 'material')
198197
MaterialPicker(
199198
pickerColor: selectedColor,
@@ -253,7 +252,7 @@ class _ColorButtonState extends State<ColorButton> {
253252
}),
254253
],
255254
),
256-
]))
255+
])
257256
],
258257
),
259258
));

0 commit comments

Comments
 (0)