flutter_symbols 1.0.0
flutter_symbols: ^1.0.0 copied to clipboard
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 int [...]
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.summationWithIntegral,
size: 50,
fill: 0.3,
color: Colors.red,
),
const SizedBox(height: 32),
Text(
"\"${Symbols.angleWithSInside.symbol}\" this is a \"${Symbols.rightAngleWithZigzagArrow.id}\" mathematical symbol",
style: const TextStyle(
color: Colors.black,
fontSize: 32,
),
textAlign: TextAlign.center,
),
],
),
),
),
),
);
}
}