brazil_license_plate_drawing 0.0.4
brazil_license_plate_drawing: ^0.0.4 copied to clipboard

Draws on the screen three different types of brazilian cars' license plates.

BrazilLicensePlateDrawing #

A set of Flutter Widgets which draw on the screen three different types of brazilian cars' license plates:

  • Mercosul
  • Three Letters (pattern from the 1990's)
  • Two Letters (pattern from the 1970's)

For each plate type, there are two color themes: commercial (used by trucks, buses, taxis, etc) and particular, used by private vehicles.

Usage #

Mercosul - Particular/Private Vehicle #

Brazil Mercosul Particular License Plate

const MercosulPlate(
    'AVG0A33',
    width: 600,
    category: BrazilPlateCategory.PARTICULAR,
)

Mercosul / Commercial Vehicle #

Brazil Mercosul Commercial License Plate

const MercosulPlate(
    'AVG0A33',
    width: 600,
    category: BrazilPlateCategory.COMMERCIAL,
)

Three Letters - Particular/Private Vehicle #

Brazil Three Letters Particular License Plate

const ThreeLettersPlate(
    'AVG0033',
    width: 600,
    locality: 'PR - CURITIBA',
    showLocality: true,
    category: BrazilPlateCategory.PARTICULAR,
)

Three Letters - Commercial Vehicle #

Brazil Three Letters Commercial License Plate

const ThreeLettersPlate(
    'AVG0033',
    width: 600,
    locality: 'PR - CURITIBA',
    showLocality: true,
    category: BrazilPlateCategory.COMMERCIAL,
)

Two Letters - Particular/Private Vehicle #

Brazil Two Letters Particular License Plate

const TwoLettersPlate(
    'AV0033',
    width: 600,
    locality: 'RJ - RIO DE JANEIRO',
    showLocality: true,
    category: BrazilPlateCategory.PARTICULAR,
)

Two Letters - Commercial #

Brazil Two Letters Commercial License Plate

const TwoLettersPlate(
    'AV0033',
    width: 600,
    locality: 'RJ - RIO DE JANEIRO',
    showLocality: true,
    category: BrazilPlateCategory.COMMERCIAL,
),

Compact Version #

Brazil Three Letters Particular License Plate

Without the locality header. Available for TwoLettersPlate and ThreeLettersPlate.

const TwoLettersPlate(
    'AV0033',
    width: 600,
    showLocality: false,
    category: BrazilPlateCategory.COMMERCIAL,
),

Main Parameters #

ParameterDescription
double widthThe width that the whole widget will take. If null, the width value will be inferred from the height value. If height is null, then the _defaultWidthvalue property will be considered.
double heightThe height that the whole widget will take. If left null, then the original proportion factor will be used to calculate this value from the width value.
BrazilPlateCategory categoryThe plate's category which determines the default color set.
bool showLocalityExcept for Mercosul. Whether to show or hide the locality header. Defaults to true.
String localityExcept for Mercosul. The city name and state acronym printed in locality header. Defaults to "BRASIL".
String countryTextMercosul only. The string that represents the text which will be positioned at the top of the licence plate, generally the name of the country. Always converted to uppercase. Defaults to "BRASIL".
String countryAcronymLettersMercosul only. The two letters printed at the bottom left position. Always converted to uppercase. Defaults to "BR".
String countryFlagAssetMercosul only. The name of the image asset that will be placed in the top right corner. Considers a relative path from the root of the assets folder. Defaults to brazil.png
String mercosulLogoAssetMercosul only. The path of the logo asset that will be placed in the top left corner. Considers a relative path from the root of the assets folder. Defaults to merco.png

Known Limitations #

  • These widgets were created to support only the expected number of characters, according to each plate type. Using more than the expected number of characters can lead to unexpected behaviours, like overflows and exceptions.
0
likes
130
pub points
0%
popularity

Publisher

carnevalli.org

Draws on the screen three different types of brazilian cars' license plates.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on brazil_license_plate_drawing