diff --git a/lib/widgets/drop_down.dart b/lib/widgets/drop_down.dart index ae4dec9..845c42c 100644 --- a/lib/widgets/drop_down.dart +++ b/lib/widgets/drop_down.dart @@ -10,7 +10,7 @@ class DropDown extends StatelessWidget { Widget build(BuildContext context) { var inputModel = context.watch(); return DropdownButtonFormField( - value: _items[0], + value: _items.isEmpty ? null : _items[0], icon: const Icon(Icons.arrow_downward), elevation: 16, style: const TextStyle(color: Colors.deepPurple),