File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class TextField95 extends StatefulWidget {
18
18
this .onSubmitted,
19
19
this .inputFormatters,
20
20
this .autofocus = false ,
21
+ this .keyboardType,
21
22
});
22
23
23
24
final TextEditingController ? controller;
@@ -30,6 +31,7 @@ class TextField95 extends StatefulWidget {
30
31
final ValueChanged <String >? onChanged;
31
32
final ValueChanged <String >? onSubmitted;
32
33
final List <TextInputFormatter >? inputFormatters;
34
+ final TextInputType ? keyboardType;
33
35
final bool autofocus;
34
36
35
37
@override
@@ -50,8 +52,10 @@ class _TextField95State extends State<TextField95> {
50
52
child: TextField (
51
53
controller: widget.controller,
52
54
maxLines: widget.maxLines,
53
- keyboardType:
54
- widget.multiline ? TextInputType .multiline : TextInputType .text,
55
+ keyboardType: widget.keyboardType ??
56
+ (widget.multiline
57
+ ? TextInputType .multiline
58
+ : TextInputType .text),
55
59
decoration: const InputDecoration (
56
60
isDense: true ,
57
61
border: InputBorder .none,
You can’t perform that action at this time.
0 commit comments