Last updated:
0 purchases
russian license plate
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
copied to clipboard
Press Pub get (for Android Studio) or run flutter packages upgrade
Import plates.dart to your code.
import 'package:russian_license_plate/plates.dart';
copied to clipboard
Usage #
Standart output 🚗 #
License plate output for regular cars.
Class: StandartLicensePlateOutput
Parameters:
size (double) - size of the widget
licensePlate (StandartLicensePlate) - output license plate
showFlag (bool) - show russian flag under region number if true, default value is true
Code example:
StandartLicensePlateOutput(
size: 70,
licensePlate: StandartLicensePlate.from("В257УК27"),
)
copied to clipboard
Standart input 🚘 #
License plate input for regular cars.
Class: StandartLicensePlateInput
Parameters:
size (double) - size of the widget
hintPlate (StandartLicensePlate?) - input hint license plate, default value is B257YK27
showFlag (bool) - show russian flag under region number if true, default value is true
onSubmitted (Function(StandartLicensePlate?, LicensePlateInputError?)?) - called when user end entered
Code example:
StandartLicensePlateInput(
size: 70,
onSubmitted: (value, error) {
print("$value $error");
},
)
copied to clipboard
Route output 🚕 #
License plate output for taxis and buses.
Class: RouteLicensePlateOutput
Parameters:
size (double) - size of the widget
licensePlate (RouteLicensePlate) - output license plate
Code example:
RouteLicensePlateOutput(
size: 70,
licensePlate: RouteLicensePlate.from("ТА010116"),
)
copied to clipboard
Route input 🚖 #
License plate input for taxis and buses.
Class: RouteLicensePlateInput
Parameters:
size (double) - size of the widget
hintPlate (RouteLicensePlate?) - input hint license plate, default value is TA777125
onSubmitted (Function(RouteLicensePlate?, LicensePlateInputError?)?) - called when user end entered
Code example:
RouteLicensePlateInput(
size: 70,
onSubmitted: (value, error) {
print("$value $error");
},
)
copied to clipboard
Police output 🚓 #
License plate output for police cars.
Class: PoliceLicensePlateOutput
Parameters:
size (double) - size of the widget
licensePlate (PoliceLicensePlate) - output license plate
Code example:
PoliceLicensePlateOutput(
size: 70,
licensePlate: PoliceLicensePlate.from("M6666716"),
)
copied to clipboard
Police input 🚔 #
License plate input for police cars.
Class: PoliceLicensePlateInput
Parameters:
size (double) - size of the widget
hintPlate (PoliceLicensePlate?) - input hint license plate, default value is M000125
onSubmitted (Function(PoliceLicensePlate?, LicensePlateInputError?)?) - called when user end entered
Code example:
PoliceLicensePlateInput(
size: 70,
onSubmitted: (value, error) {
print("$value $error");
},
)
copied to clipboard
License ✍️ #
We use MIT licence.
Support ❤️🤑 #
You can support me here.
Package 🧃 #
You can find the package here
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.