iran_plate 0.6.0
iran_plate: ^0.6.0 copied to clipboard
Iran's licence plates for the plate_core library — country panels, the Persian alphabets, and the Iranian plate specs.
FREE PALESTINE 🇮🇷🇵🇸 پاینده ایران
GO VEGAN 🌱
==================================
From the mighty people of Iran to the people of Iran to view examples:
https://platexample.ir/#/discover/iran
Iran's licence plates for plate_core - a country
that, as the licence header insists, actually exists. Bahrain's and Azerbaijan's have moved
out to iranshahr_plate.
iran_plate #
It's data, not code: the country panel with the flag SVG this package ships, the Persian
digit and letter alphabets, the usage-derived colour schemes, and the plate specs for every
Iranian vehicle class. plate_core paints them.
Depends on #
plate_core (^0.9.1). Nothing else - not germany_plate, not plate_keypad,
not plate_core_bloc.
Use #
import 'package:plate_core/plate_core.dart';
import 'package:iran_plate/iran_plate.dart';
PlateCanvas(
spec: IranPlates.car,
theme: IranThemes.blackOnWhite,
onChooseCharacter: (a) async => null,
);
Iran encodes the vehicle class twice over - in the series letter and in the field
colour - so both come from one IranUsage and neither is picked by hand:
PlateCanvas(
spec: IranPlates.forUsage(IranUsage.taxi), // yellow blank, `ت` fixed, TAXI above it
theme: IranThemes.forUsage(IranUsage.taxi),
onChooseCharacter: (a) async => null,
);
The letter slot on a private plate wants a picker: it is one of thirteen county
letters. Pass PlateCharacterPicker.show from plate_keypad if you've got it - the
repo's plate_gallery/ app wires exactly that, next to every plate the other country
packages draw. Every other class fixes its letter to a single character, so the picker
has one answer and opening it changes nothing.
Contains #
IranCountry.iran- the panel andFlag_of_Iran.svg.IranColors- every field and ink colour, sampled off the reference images.IranThemes- eight schemes, plusIranThemes.forUsage.IranUsage- the seventeen vehicle classes and the letter each is fixed to.PersianAlphabets.digits,.privateLetters,.disabledSymbol, and one single-character alphabet per fixed-letter class.IranPlates.forUsage,IranPlates.all, and a named const per class.
The plates #
Fourteen classes share one 520x110 blank - a taxi plate is a private plate in yellow with
ت fixed in the letter slot, not a second design:
| Class | Letter | Scheme |
|---|---|---|
car (private) |
one of thirteen, by county | black on white |
disabled |
♿︎ (stored ژ) |
black on white |
temporary |
گ |
black on white |
taxi |
ت, under the word TAXI |
black on yellow |
publicTransport |
ع |
black on yellow |
agricultural |
ک |
black on yellow |
government |
الف |
white on red |
police |
پ |
white on dark green |
irgc |
ث |
white on dark green |
army |
ش |
black on light brown |
ministryOfDefence |
ز |
white on light blue |
generalStaff |
ف |
white on light blue |
political |
D, square reads سیاسی |
black on cyan |
service |
S, square reads سرویس |
black on cyan |
Three are their own blank: protocol (تشریفات / PROTOCOL beside a bare serial, no
letter and no province square), historic (تاریخی over five digits, American size) and
motorcycle (a three-digit provincial code over a five-digit serial).
Not shipped #
- The free trade zone plates (Anzali, Aras, Arvand, Kish, Maku, Chabahar, Qeshm). Each prints its zone's logo, and this package ships no such image.
- The Bagh-e Melli photograph on the historic plate, for the same reason:
IranPlates.historicdraws the ordinary flag-and-caption block in its place. - The previous-format political, service and temporary-passage plates, which the article shows only as small raster images.
Everything above is read off the Wikipedia article Vehicle registration plates of Iran - the letter series table, the section text, and the reference SVGs, which is where the coordinates and the sampled colours come from.
Also available #
plate_core- Paint license plates.plate_alphabet- A library of alphabets for license plates.plate_keypad- A character picker for license plates.plate_number_holder- A frame to hold license plate numbers.algeria_plate- Algeria's licence plates.bolivia_plate- Bolivia's licence plates.colombia_plate- Colombia's licence plates.cuba_plate- Cuba's licence plates.germany_plate- Germany's licence plates.india_plate- India's licence plates.indonesia_plate- Indonesia's licence plates.iranshahr_plate- Iranshahr region's licence plates.lebanon_plate- Lebanon's licence plates.malaysia_plate- Malaysia's licence plates.mali_plate- Mali's licence plates.niger_plate- Niger's licence plates.palestine_plate- Palestine's licence plates.sudan_plate- Sudan's licence plates.tunisia_plate- Tunisia's licence plates.venezuela_plate- venezuela_ licence plates.yemen_plate- Yemen's licence plates.