Skip to main content

australia_plate 0.1.0 copy "australia_plate: ^0.1.0" to clipboard
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.

example/main.dart

import 'package:flutter/material.dart';
import 'package:australia_plate/australia_plate.dart';
import 'package:plate_core/plate_core.dart';

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

/// Shows one editable plate: tap a slot and type to fill it in.
class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(16),
            child: PlateCanvas(
              spec: AustraliaPlates.nsw,
              theme: AustraliaThemes.nsw,
              onChooseCharacter: (alphabet) async => null,
            ),
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
611
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)

License

MIT (license)

Dependencies

flutter, plate_alphabet, plate_core

More

Packages that depend on australia_plate