Capitalize album name on editing

This commit is contained in:
ashilkn 2023-02-09 10:42:40 +05:30
parent ef79387b9d
commit fa9d251e32

View file

@ -116,6 +116,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
submitButtonLabel: "Rename",
hintText: "Enter album name",
alwaysShowSuccessState: true,
textCapitalization: TextCapitalization.words,
onSubmit: (String text) async {
// indicates user cancelled the rename request
if (text == "" || text.trim() == _appBarTitle!.trim()) {