input_type_field 1.0.0
input_type_field: ^1.0.0 copied to clipboard
A multi platform input type. With current keyboard type parameter input fields will force you to enter only digits (for example) but this is not the case when executing your code on the web or on desk [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add input_type_field
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
input_type_field: ^1.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:input_type_field/extensions/extension_file.dart';
import 'package:input_type_field/validators/validators_constants.dart';
import 'package:input_type_field/widgets/cupertino_text_type.dart';
import 'package:input_type_field/widgets/input_type_field.dart';
import 'package:input_type_field/widgets/material_text_type.dart';