diff --git a/lib/views/image_manager/general_collection_manager.dart b/lib/views/image_manager/general_collection_manager.dart index 0117a80..a3a9184 100644 --- a/lib/views/image_manager/general_collection_manager.dart +++ b/lib/views/image_manager/general_collection_manager.dart @@ -39,35 +39,47 @@ class _GeneralCollectionManagerScreenState extends State value != null && value.isNotEmpty ? null : "Value is empty", - onChanged: (value) { - widget.collection.name = value; - if(widget.onErrorChange != null) widget.onErrorChange!(value.isEmpty); - }, - ), - ), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), + child: TextFormField( + decoration: const InputDecoration( + labelText: "Name of collection" + ), + enabled: widget.saveCollectionToggle ?? true, + initialValue: widget.collection.name, + validator: (value) => value != null && value.isNotEmpty ? null : "Value is empty", + onChanged: (value) { + widget.collection.name = value; + if(widget.onErrorChange != null) widget.onErrorChange!(value.isEmpty); + }, + ), + ), + ], + ) ], ); }