Skip to main content

germany_plate 0.2.0 copy "germany_plate: ^0.2.0" to clipboard
germany_plate: ^0.2.0 copied to clipboard

Germany's licence plates for the plate_core library — the country panel, the car spec with its EU stickers, and the German plate validator.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    final spec = GermanPlates.car;
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(16),
            child: PlateCanvas(
              spec: spec,
              validator: const GermanPlateValidator(),
              autoValidate:
                  true, // paints red on an invalid plate; never blocks input
              onChooseCharacter: (alphabet) async => null,
            ),
          ),
        ),
      ),
    );
  }
}
1
likes
130
points
380
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Germany's licence plates for the plate_core library — the country panel, the car spec with its EU stickers, and the German plate validator.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, plate_core

More

Packages that depend on germany_plate