mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob][photos] Improve TextInput
Widget
This commit is contained in:
parent
bf256863b9
commit
70191d752b
@ -282,7 +282,7 @@ class _TextInputDialogState extends State<TextInputDialog> {
|
||||
isPasswordInput: widget.isPasswordInput,
|
||||
textEditingController: _textEditingController,
|
||||
textInputFormatter: widget.textInputFormatter,
|
||||
textInputType: widget.textInputType,
|
||||
keyboardType: widget.textInputType,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 36),
|
||||
|
@ -48,8 +48,9 @@ class TextInputWidget extends StatefulWidget {
|
||||
final TextEditingController? textEditingController;
|
||||
final ValueNotifier? isEmptyNotifier;
|
||||
final List<TextInputFormatter>? textInputFormatter;
|
||||
final TextInputType? textInputType;
|
||||
final TextInputType? keyboardType;
|
||||
final bool enableFillColor;
|
||||
final bool autoCorrect;
|
||||
const TextInputWidget({
|
||||
this.onSubmit,
|
||||
this.onChange,
|
||||
@ -77,8 +78,9 @@ class TextInputWidget extends StatefulWidget {
|
||||
this.textEditingController,
|
||||
this.isEmptyNotifier,
|
||||
this.textInputFormatter,
|
||||
this.textInputType,
|
||||
this.keyboardType,
|
||||
this.enableFillColor = true,
|
||||
this.autoCorrect = true,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@ -155,7 +157,7 @@ class _TextInputWidgetState extends State<TextInputWidget> {
|
||||
borderRadius: BorderRadius.all(Radius.circular(widget.borderRadius)),
|
||||
child: Material(
|
||||
child: TextFormField(
|
||||
keyboardType: widget.textInputType,
|
||||
keyboardType: widget.keyboardType,
|
||||
textCapitalization: widget.textCapitalization!,
|
||||
autofocus: widget.autoFocus ?? false,
|
||||
autofillHints:
|
||||
@ -223,6 +225,7 @@ class _TextInputWidgetState extends State<TextInputWidget> {
|
||||
onEditingComplete: () {
|
||||
_onSubmit();
|
||||
},
|
||||
autocorrect: widget.autoCorrect,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user