flutter_symbols

The flutter_symbols package provides a collection of SymbolIcons, which function similarly to IconData in Flutter. It also includes a wide range of symbols such as ∕, allowing developers to easily integrate these symbols into their Flutter apps, improving the visual representation of content. Screenshot_20241019_101259.png

Use case


IconData icon = SymbolIcons.rightAngleWithZigzagArrow;
Symbol symbol = Symbols.rightAngleWithZigzagArrow;

Example

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Symbols',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        body: Padding(
          padding: const EdgeInsets.all(50),
          child: Center(
            child: Column(
              mainAxisSize: MainAxisSize.min,
              children: [
                const Icon(
                  SymbolIcons.rightAngleWithZigzagArrow,
                  size: 50,
                  fill: 0.3,
                  color: Colors.red,
                ),
                const SizedBox(height: 32),
                Text(
                  "\"${Symbols.rightAngleWithZigzagArrow.symbol}\" this is a \"${Symbols
                      .rightAngleWithZigzagArrow.id}\" symbol",
                  style: const TextStyle(
                    color: Colors.black,
                    fontSize: 32,
                  ),
                  textAlign: TextAlign.center,
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}