Fix color picker dialog overflow

Moved all dialog contents into a SingleChildScrollView
pull/1251/head
George Tian 2 years ago committed by GitHub
parent 6399cca1d8
commit c7a5371fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      lib/src/widgets/toolbar/color_button.dart

@ -170,9 +170,9 @@ class _ColorButtonState extends State<ColorButton> {
child: Text('OK'.i18n)), child: Text('OK'.i18n)),
], ],
backgroundColor: Theme.of(context).canvasColor, backgroundColor: Theme.of(context).canvasColor,
content: SizedBox( content: SingleChildScrollView(
height: 400,
child: Column( child: Column(
mainAxisSize: MainAxisSize.min,
children: [ children: [
Row( Row(
children: [ children: [
@ -192,8 +192,7 @@ class _ColorButtonState extends State<ColorButton> {
child: Text('Color'.i18n)), child: Text('Color'.i18n)),
], ],
), ),
Expanded( Column(children: [
child: Column(children: [
if (pickerType == 'material') if (pickerType == 'material')
MaterialPicker( MaterialPicker(
pickerColor: selectedColor, pickerColor: selectedColor,
@ -253,7 +252,7 @@ class _ColorButtonState extends State<ColorButton> {
}), }),
], ],
), ),
])) ])
], ],
), ),
)); ));

Loading…
Cancel
Save