Capitalize album name on editing
This commit is contained in:
parent
ef79387b9d
commit
fa9d251e32
|
@ -116,6 +116,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
|
||||||
submitButtonLabel: "Rename",
|
submitButtonLabel: "Rename",
|
||||||
hintText: "Enter album name",
|
hintText: "Enter album name",
|
||||||
alwaysShowSuccessState: true,
|
alwaysShowSuccessState: true,
|
||||||
|
textCapitalization: TextCapitalization.words,
|
||||||
onSubmit: (String text) async {
|
onSubmit: (String text) async {
|
||||||
// indicates user cancelled the rename request
|
// indicates user cancelled the rename request
|
||||||
if (text == "" || text.trim() == _appBarTitle!.trim()) {
|
if (text == "" || text.trim() == _appBarTitle!.trim()) {
|
||||||
|
|
Loading…
Reference in a new issue