australia_plate 0.1.0
australia_plate: ^0.1.0 copied to clipboard
Australia's licence plates for plate_core: the states' and territories' standard plates, heavy-vehicle, Defence and diplomatic, with themes, an advisory validator, and more.
FREE PALESTINE 🇮🇷🇵🇸 پاینده ایران
GO VEGAN 🌱
==================================
From the mighty people of Iran to the hospitable people of Australia to view examples:
https://platexample.ir/#/discover/australia
australia_plate #
Australia's licence plates for the plate_core library. The standard plate of each state and territory, the National Heavy Vehicle, Federal Interstate, Army, Air Force, Defence and Diplomatic plates, each a spec with one slot per field, a theme, an advisory validator and a serial generator.
Install #
dependencies:
plate_core: ^0.12.0
australia_plate: ^0.1.0
Use #
import 'package:plate_core/plate_core.dart';
import 'package:australia_plate/australia_plate.dart';
PlateCanvas(
spec: AustraliaPlates.nsw,
theme: AustraliaThemes.nsw,
validator: const AustraliaValidator(),
autoValidate: true,
onChooseCharacter: noCharacterChooser,
);
Contains #
AustraliaCountry— country panel:australia.AustraliaPlates— 14 plate specs:nsw,nt,federalInterstate,act,qld,sa,tas,vic,wa,nationalHeavyVehicle,army,airForce,defence,diplomatic.AustraliaThemes— 14 themes:nsw,nt,federalInterstate,act,qld,sa,tas,vic,wa,nationalHeavyVehicleand 4 more.AustraliaValidator— advisory validator; flags the frame, never blocks a keystroke.AustraliaSerialGenerator— random plate generator.
Plates #
Every spec has one slot per field (a run printed and typed as a unit) with
text groups f0, f1, … — the validator, the generator and the gallery
read them. Lengths come from AustraliaFormats.
Not implemented: the older series (the article lists many per state),
slimline "Premium", motorcycle, trailer and the other special-purpose
plates (club, rally, taxi, farm…), which differ in fields and legend only;
the alternative-fuel stickers; the 1970s–90s Commonwealth plates; the
Governor-General's crown plate, the Prime Minister's C*1 and the Chief of
Army's plate, which are one-offs. The logos printed on some plates (the
Tasmanian thylacine, the Victorian V, the WA sun, the RAAF roundel) are
emblems and are left out.
Part of plate #
Painted by plate_core; alphabets shared through plate_alphabet; optional character picker in plate_keypad.