Skip to content

Commit 602aaec

Browse files
committed
fix: Fixed keyboard types in Add Book Screen
1 parent beacc3b commit 602aaec

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/ui/add_book_screen/add_book_screen.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ class _AddBookScreenState extends State<AddBookScreen> {
464464
controller: _titleCtrl,
465465
hint: LocaleKeys.enter_title.tr(),
466466
icon: Icons.book,
467-
keyboardType: TextInputType.name,
467+
keyboardType: TextInputType.text,
468468
autofocus:
469469
(widget.fromOpenLibrary || widget.editingExistingBook)
470470
? false
@@ -478,7 +478,7 @@ class _AddBookScreenState extends State<AddBookScreen> {
478478
controller: _subtitleCtrl,
479479
hint: LocaleKeys.enter_subtitle.tr(),
480480
icon: Icons.book,
481-
keyboardType: TextInputType.name,
481+
keyboardType: TextInputType.text,
482482
maxLines: 5,
483483
maxLength: 255,
484484
textCapitalization: TextCapitalization.sentences,
@@ -491,7 +491,7 @@ class _AddBookScreenState extends State<AddBookScreen> {
491491
controller: _authorCtrl,
492492
hint: LocaleKeys.enter_author.tr(),
493493
icon: Icons.person,
494-
keyboardType: TextInputType.name,
494+
keyboardType: TextInputType.text,
495495
maxLines: 5,
496496
maxLength: 255,
497497
textCapitalization: TextCapitalization.words,
@@ -583,10 +583,8 @@ class _AddBookScreenState extends State<AddBookScreen> {
583583
controller: _isbnCtrl,
584584
hint: LocaleKeys.isbn.tr(),
585585
icon: FontAwesomeIcons.i,
586-
keyboardType: TextInputType.number,
587-
inputFormatters: <TextInputFormatter>[
588-
FilteringTextInputFormatter.digitsOnly
589-
],
586+
textCapitalization: TextCapitalization.characters,
587+
keyboardType: TextInputType.text,
590588
maxLength: 20,
591589
),
592590
),

0 commit comments

Comments
 (0)