File tree 1 file changed +11
-5
lines changed
content/vaahflutter/5.directory_structure/3.vaahextendflutter/6.widgets/1.atoms 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -154,11 +154,16 @@ const InputText(
154
154
),
155
155
```
156
156
157
- Disable border for Input text
157
+ You will need to declare FocusNode first.
158
+ ``` dart
159
+ final FocusNode myFocusNode = FocusNode();
160
+ ```
161
+
162
+ Use focusNode to get focus on Button Tap
158
163
``` dart{3}
159
- const InputText(
164
+ InputText(
160
165
label: 'Test',
161
- inputBorder: InputBorderType.none ,
166
+ focusNode: myFocusNode ,
162
167
),
163
168
```
164
169
@@ -212,7 +217,7 @@ class InputText extends StatelessWidget {
212
217
final Function()? suffixOnTap;
213
218
final int? minLines;
214
219
final int? maxLines;
215
- final InputBorderType inputBorder ;
220
+ final FocusNode? focusNode ;
216
221
217
222
const InputText({
218
223
super.key,
@@ -235,7 +240,7 @@ class InputText extends StatelessWidget {
235
240
this.suffixOnTap,
236
241
this.minLines,
237
242
this.maxLines,
238
- this.inputBorder = InputBorderType.outline ,
243
+ this.focusNode ,
239
244
});
240
245
241
246
@override
@@ -308,6 +313,7 @@ class InputText extends StatelessWidget {
308
313
autovalidateMode: autoValidateMode,
309
314
minLines: minLines,
310
315
maxLines: maxLines,
316
+ focusNode: focusNode,
311
317
);
312
318
}
313
319
You can’t perform that action at this time.
0 commit comments