russian_license_plate 0.0.3 copy "russian_license_plate: ^0.0.3" to clipboard
russian_license_plate: ^0.0.3 copied to clipboard

Input and output widgets for russian cars' license plates. Possiable typese are standart, route and polices.

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.

Image

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 run flutter packages upgrade

  • Import plates.dart to your code.

import 'package:russian_license_plate/plates.dart';

Usage #

Standart output 🚗 #

License plate output for regular cars.

Image

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"),
)

Standart input 🚘 #

License plate input for regular cars.

Image

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");
    },
)

Route output 🚕 #

License plate output for taxis and buses.

Image

Class: RouteLicensePlateOutput

Parameters:

  • size (double) - size of the widget
  • licensePlate (RouteLicensePlate) - output license plate

Code example:

RouteLicensePlateOutput(
    size: 70,
    licensePlate: RouteLicensePlate.from("ТА010116"),
)

Route input 🚖 #

License plate input for taxis and buses.

Image

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");
    },
)

Police output 🚓 #

License plate output for police cars.

Image

Class: PoliceLicensePlateOutput

Parameters:

  • size (double) - size of the widget
  • licensePlate (PoliceLicensePlate) - output license plate

Code example:

PoliceLicensePlateOutput(
    size: 70,
    licensePlate: PoliceLicensePlate.from("M6666716"),
)

Police input 🚔 #

License plate input for police cars.

Image

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");
    },
)

License ✍️ #

We use MIT licence.

Support ❤️🤑 #

You can support me here.

Package 🧃 #

You can find the package here

4
likes
140
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

Input and output widgets for russian cars' license plates. Possiable typese are standart, route and polices.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on russian_license_plate