From 6fa586ab57d3ecdc517df2c9ca3c9d05b9b948a4 Mon Sep 17 00:00:00 2001 From: singerdmx Date: Sun, 27 Dec 2020 00:03:12 -0800 Subject: [PATCH] Fix usage of AlertDialog --- lib/widgets/toolbar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/toolbar.dart b/lib/widgets/toolbar.dart index c825b575..8acdb12f 100644 --- a/lib/widgets/toolbar.dart +++ b/lib/widgets/toolbar.dart @@ -505,7 +505,7 @@ class _ColorButtonState extends State { _showColorPicker() { showDialog( context: context, - child: AlertDialog( + builder: (_) => AlertDialog( title: const Text('Select Color'), content: SingleChildScrollView( child: MaterialPicker(