asset_icon 1.0.4
asset_icon: ^1.0.4 copied to clipboard
A powerful and customizable Flutter package for rendering asset-based icons with ease
import 'package:asset_icon/asset_icon.dart';
import 'package:flutter/material.dart';
import 'generated/icons.g.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
iconTheme: const IconThemeData(
color: Colors.red,
size: 150,
opacity: 0.9,
),
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: AssetIcon(
AssetIcons.star,
),
),
);
}
}