flutter_islamic_icons 1.0.2 flutter_islamic_icons: ^1.0.2 copied to clipboard
Add color to your projects with dozens of beautiful Islamic icons.
import 'package:flutter/material.dart';
import 'package:flutter_islamic_icons/flutter_islamic_icons.dart';
import 'all_icons_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Islamic Icons',
theme: ThemeData(
primarySwatch: Colors.blue,
appBarTheme: const AppBarTheme(centerTitle: true)),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Flutter Islamic Icons"),
),
body: Container(
width: MediaQuery.of(context).size.width,
padding: const EdgeInsets.all(20),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
const Icon(FlutterIslamicIcons.solidAllah, size: 80),
MaterialButton(
color: Colors.blue,
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const AllIconsPage()),
);
},
child: const Text("All Icons",
style: TextStyle(color: Colors.white)))
],
),
),
);
}
}