Skip to main content

iran_plate 0.1.0 copy "iran_plate: ^0.1.0" to clipboard
iran_plate: ^0.1.0 copied to clipboard

Iran's licence plates for the core_plate library — the country panel, the Persian alphabets, and the car and bicycle specs.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:core_plate/core_plate.dart';
import 'package:iran_plate/iran_plate.dart';

void main() => runApp(const ExampleApp());

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    const spec = IranPlates.car; // or IranPlates.bicycle
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(16),
            child: BlocProvider(
              create: (_) => PlateCardBloc(spec),
              child: PlateCanvas(
                spec: spec,
                onChooseCharacter: (alphabet) async => null,
              ),
            ),
          ),
        ),
      ),
    );
  }
}
2
likes
160
points
360
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Iran's licence plates for the core_plate library — the country panel, the Persian alphabets, and the car and bicycle specs.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

core_plate, flutter

More

Packages that depend on iran_plate