Skip to main content

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

The backbone of license plate packages for countries that actually exist (we checked).

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) {
    // PlateCanvas reads its state from a PlateCardBloc provided above it.
    // Build the bloc with the same spec you pass to the canvas.
    const spec = IranPlates.car;
    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,
              ),
            ),
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
199
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

The backbone of license plate packages for countries that actually exist (we checked).

License

MIT (license)

Dependencies

bloc, flutter, flutter_bloc, flutter_svg

More

Packages that depend on core_plate