diff --git a/lib/areas/schedule/widgets/schedule_list.dart b/lib/areas/schedule/widgets/schedule_list.dart index 87ad64e..321d7e4 100644 --- a/lib/areas/schedule/widgets/schedule_list.dart +++ b/lib/areas/schedule/widgets/schedule_list.dart @@ -68,6 +68,22 @@ class ScheduleListState extends State builder: (context) => CupertinoAlertDialog( title: const Text("Farbe wählen"), content: BlockPicker( + layoutBuilder: (context, colors, child) => + SizedBox( + height: 365, + width: 300, + child: GridView.count( + controller: ScrollController( + initialScrollOffset: 30), + crossAxisCount: 4, + crossAxisSpacing: 5.0, + mainAxisSpacing: 5.0, + children: colors + .map( + (Color color) => child(color)) + .toList(), + ), + ), availableColors: const [ Colors.red, Colors.pink,