mana_icons_flutter 1.15.9 copy "mana_icons_flutter: ^1.15.9" to clipboard
mana_icons_flutter: ^1.15.9 copied to clipboard

Magic: The Gathering symbols as icons in a flutter application.

example/lib/main.dart

/*
    Mana Icons Flutter
    Copyright (C) 2024 Jefferey Neuffer

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "Icons Example",
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.green),
        useMaterial3: true,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Row(
            children: [
              Text("Icons Example"),
              Icon(ManaIcons.ms_w),
            ],
          ),
        ),
        body: SingleChildScrollView(
          child: Padding(
            padding: const EdgeInsets.all(8.0),
            child: Center(
              child: Column(
                children: [
                  for (var icon in ManaIcons.icons.entries)
                    Row(
                      children: [
                        Icon(icon.value),
                        Text(icon.key),
                      ],
                    ),
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }
}
1
likes
160
points
36
downloads

Publisher

verified publisherj7126.dev

Weekly Downloads

Magic: The Gathering symbols as icons in a flutter application.

Repository (GitHub)
View/report issues

Documentation

API reference

License

AGPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on mana_icons_flutter