russian_license_plate 0.0.1 russian_license_plate: ^0.0.1 copied to clipboard
Input and output widgets for russian cars' license plates.
russian_license_plate #
Input and output widgets for russian cars' license plates.
License plates types:
- Standart for regular cars. Examle:
В257УК 27
. - Route for taxis and buses. Examle:
TA001 125
. - Police for polices casr. Examle:
M0001 716
.
Getting Started 🛠 #
- Add the following dependency to pubspec.yaml of your project:
dependencies:
russian_license_plate: ^0.0.1
-
Press
Pub get
(for Android Studio) or runflutter packages upgrade
-
Import
plates.dart
to your code.
import 'package:russian_license_plate/plates.dart';
Usage #
Standart output 🚗 #
License plate output for regular cars.
Class: StandartLicensePlateOutput
Parameters:
size
(double
) - size of the widgetlicensePlate
(StandartLicensePlate
) - output license plateshowFlag
(bool
) - show russian flag under region number if true, default value istrue
Code example:
StandartLicensePlateOutput(
size: 70,
licensePlate: StandartLicensePlate.from("В257УК27"),
)
Standart input 🚘 #
License plate input for regular cars.
Class: StandartLicensePlateInput
Parameters:
size
(double
) - size of the widgethintPlate
(StandartLicensePlate?
) - input hint license plate, default value isB257YK27
showFlag
(bool
) - show russian flag under region number if true, default value istrue
onSubmitted
(Function(StandartLicensePlate?, LicensePlateInputError?)?
) - called when user end entered
Code example:
StandartLicensePlateInput(
size: 70,
onSubmitted: (value, error) {
print("$value $error");
},
)
Route output 🚕 #
License plate output for taxis and buses.
Class: RouteLicensePlateOutput
Parameters:
size
(double
) - size of the widgetlicensePlate
(RouteLicensePlate
) - output license plate
Code example:
RouteLicensePlateOutput(
size: 70,
licensePlate: RouteLicensePlate.from("ТА010116"),
)
Route input 🚖 #
License plate input for taxis and buses.
Class: RouteLicensePlateInput
Parameters:
size
(double
) - size of the widgethintPlate
(RouteLicensePlate?
) - input hint license plate, default value isTA777125
onSubmitted
(Function(RouteLicensePlate?, LicensePlateInputError?)?
) - called when user end entered
Code example:
RouteLicensePlateInput(
size: 70,
onSubmitted: (value, error) {
print("$value $error");
},
)
Police output 🚓 #
License plate output for police cars.
Class: PoliceLicensePlateOutput
Parameters:
size
(double
) - size of the widgetlicensePlate
(PoliceLicensePlate
) - output license plate
Code example:
PoliceLicensePlateOutput(
size: 70,
licensePlate: PoliceLicensePlate.from("M6666716"),
)
Police input 🚔 #
License plate input for police cars.
Class: PoliceLicensePlateInput
Parameters:
size
(double
) - size of the widgethintPlate
(PoliceLicensePlate?
) - input hint license plate, default value isM000125
onSubmitted
(Function(PoliceLicensePlate?, LicensePlateInputError?)?
) - called when user end entered
Code example:
PoliceLicensePlateInput(
size: 70,
onSubmitted: (value, error) {
print("$value $error");
},
)
License ✍️ #
We use MIT licence.
Support ❤️🤑 #
You can support me here.
Package 🧃 #
You can find the package here