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
Libraries
- plates
- police_license_plate/police_license_plate
- police_license_plate/police_license_plate_decoration
- police_license_plate/police_license_plate_input
- police_license_plate/police_license_plate_output
- route_license_plate/route_license_plate
- route_license_plate/route_license_plate_decoration
- route_license_plate/route_license_plate_input
- route_license_plate/route_license_plate_output
- russian_license_plate_method_channel
- russian_license_plate_platform_interface
- russian_license_plate_web
- shared/decoration/license_plate_decoration
- shared/decoration/license_plate_region_decoration
- shared/input/fields/fixed_digit_input
- shared/input/fields/fixed_latters_input
- shared/input/fields/fixed_symbols_input
- shared/input/license_plate_input_error
- shared/input/license_plate_region_input
- shared/input/stateful_license_plate_widget
- shared/models/license_plate
- shared/output/license_plate_region_output
- shared/output/stateless_license_plate_widget
- standart_license_plate/standart_license_plate
- standart_license_plate/standart_license_plate_decoration
- standart_license_plate/standart_license_plate_input
- standart_license_plate/standart_license_plate_output