Search
 
SCRIPT & CODE EXAMPLE
 

DART

flutter textinput number

TextFormField(
   decoration: const InputDecoration(
     labelText: 'Contact No',
   ),
   keyboardType: TextInputType.number,
),
Comment

How to create number input field in Flutter?

You can specify the number as keyboardType for the TextField using:

keyboardType: TextInputType.number

// Learn Flutter inside VS Code at sideguide.dev/courses/flutter?ref=grepper
Comment

PREVIOUS NEXT
Code Example
Dart :: flutter textspan onclick 
Dart :: dart datetime parse 
Dart :: round container flutter 
Dart :: rupee icon in flutter 
Dart :: if directory exists flutter 
Dart :: flutter insecure http is not allowed by platform 
Dart :: hide keyboard flutter 
Dart :: flutter appbar trailing icon 
Dart :: flutter mediaquery 
Dart :: dart timer 
Dart :: flutter portrait only 
Dart :: how to get first word of a sentence in flutter 
Dart :: mainBottomSheet dismiss flutte 
Dart :: dart async vs async* 
Dart :: flutter listtile color 
Dart :: Attribute application@icon value=(@mipmap/launcher_icon) from AndroidManifest.xml:17:9-45 
Dart :: custom error snackbar with icon flutter 
Dart :: DartPad requires localStorage to be enabled 
Dart :: flutter full screen bottom sheet 
Dart :: flutter audio player get duration 
Dart :: dart constructor assert 
Dart :: flutter appbar leading icon 
Dart :: delay in flutter 
Dart :: flutter dart sort list of objects 
Dart :: dispose in dart 
Dart :: dart convert iterable to list 
Dart :: transform widget flutter 
Dart :: flutter alert dialog shape 
Dart :: flutter ios status bar is dark 
Dart :: ClipRRect for flutter 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =