flutter_icons_null_safety 1.1.0 copy "flutter_icons_null_safety: ^1.1.0" to clipboard
flutter_icons_null_safety: ^1.1.0 copied to clipboard

A null-safety version of plugin flutter_icons. Customizable Icons for Flutter,you can use with over 3K+ icons in your flutter project

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_icons_null_safety/flutter_icons_null_safety.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Icons'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Padding(
        padding: const EdgeInsets.all(20.0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Icon(FlutterIcons.ab_testing_mco),
            Icon(AntDesign.stepforward),
//            Icon(Ionicons.ios_search),
//            Icon(FontAwesome.glass),
//            Icon(MaterialIcons.ac_unit),
//            Icon(FontAwesome5.address_book),
//            Icon(FontAwesome5Solid.address_book),
//            Icon(FontAwesome5Brands.$500px),
//            Icon(FlutterIcons.$500px_ent),
//            Icon(FlutterIcons.$500px_faw5d),
//            Icon(WeatherIcons.wi_alien),
//            Icon(WeatherIcons.wi_cloud),
//            Icon(WeatherIcons.wi_day_rain)
          ],
        ),
      ),
    );
  }
}
11
likes
120
points
1.01k
downloads

Publisher

verified publisherzyzdev.dev

Weekly Downloads

A null-safety version of plugin flutter_icons. Customizable Icons for Flutter,you can use with over 3K+ icons in your flutter project

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on flutter_icons_null_safety