tabler_icons 2.5.0+1 copy "tabler_icons: ^2.5.0+1" to clipboard
tabler_icons: ^2.5.0+1 copied to clipboard

A tabler icon flutter packages based on https://tabler-icons.io/

example/lib/main.dart

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),
      ),
    );
  }
}
16
likes
150
pub points
86%
popularity

Publisher

verified publisherbongthorn.tech

A tabler icon flutter packages based on https://tabler-icons.io/

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tabler_icons