mtg_symbology 1.0.3 copy "mtg_symbology: ^1.0.3" to clipboard
mtg_symbology: ^1.0.3 copied to clipboard

Easily display Magic: The Gathering symbols as Flutter SVG widgets.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:mtg_symbology/mtg_symbology.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    final colorScheme = Theme.of(context).colorScheme;
    return MaterialApp(
      title: 'Mtg Symbology Example App',
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: colorScheme.inversePrimary,
          title: Text('Mtg Symbology Example App'),
        ),
        body: ListView(
          children: [
            SafeArea(
              child: Wrap(
                children: [
                  for (final symbol in mtgSymbology.entries)
                    Padding(
                      padding: const EdgeInsets.all(8.0),
                      child: Column(
                        children: [
                          Text(symbol.key),
                          const SizedBox(height: 8),
                          symbol.value.toSvg(),
                        ],
                      ),
                    ),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
160
points
217
downloads

Publisher

verified publisherzmuranaka.dev

Weekly Downloads

Easily display Magic: The Gathering symbols as Flutter SVG widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on mtg_symbology