tabler_icons 2.5.0+1 tabler_icons: ^2.5.0+1 copied to clipboard
A tabler icon flutter packages based on https://tabler-icons.io/
import 'package:flutter/material.dart';
import 'package:tabler_icons/tabler_icons.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Tabler Icons Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading:
IconButton(icon: const Icon(TablerIcons.heading), onPressed: () {}),
title: const Text('Tabler Icon Demo'),
actions: <Widget>[
IconButton(icon: const Icon(TablerIcons.menu_2), onPressed: () {})
],
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: const <Widget>[
Icon(TablerIcons.heart),
Icon(TablerIcons.heart, color: Colors.red, size: 200),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: () {},
child: const Icon(TablerIcons.plus),
),
);
}
}