evil_icons_flutter 0.5.0 copy "evil_icons_flutter: ^0.5.0" to clipboard
evil_icons_flutter: ^0.5.0 copied to clipboard

Icon evil pack with the code to support flutter, easy use, beautifully.

example/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Evil Icons',
      theme: ThemeData(
        primarySwatch: Colors.lightBlue,
      ),
      debugShowCheckedModeBanner: false,
      home: MyHomePage(title: 'Evil Icons'),
    );
  }
}

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

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(_) {
    return Scaffold(
      appBar: AppBar(
        title: Center(
          child: Text(
            widget.title,
            style: TextStyle(color: Colors.white),
          ),
        ),
      ),
      body: Center(
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Column(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                _createIcon(
                  EvilIcons.sc_github,
                  'Github icon',
                ),
                _createIcon(EvilIcons.spinner_2, 'Spinner 2 icon'),
                _createIcon(EvilIcons.plus, 'Plus icon'),
                _createIcon(EvilIcons.play, 'Play icon'),
                _createIcon(EvilIcons.star, 'Star icon'),
              ],
            ),
            Column(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                _createIcon(EvilIcons.sc_facebook, 'Facebook icon'),
                _createIcon(EvilIcons.sc_twitter, 'Twitter icon'),
                _createIcon(EvilIcons.search, 'Search icon'),
                _createIcon(EvilIcons.refresh, 'Refesh icon'),
                _createIcon(EvilIcons.sc_youtube, 'Youtube icon'),
              ],
            ),
          ],
        ),
      ),
    );
  }

  Widget _createIcon(IconData iconData, String name, {Color iconColor = Colors.blueAccent}) {
    return Row(
      children: <Widget>[
        IconButton(
          icon: Icon(iconData),
          iconSize: 55,
          color: iconColor,
          onPressed: () {
            debugPrint(name);
          },
        ),
        Text(
          name,
          style: TextStyle(color: iconColor, fontWeight: FontWeight.bold, fontSize: 16),
        ),
      ],
    );
  }
}
6
likes
140
pub points
65%
popularity

Publisher

verified publisheruit.social

Icon evil pack with the code to support flutter, easy use, beautifully.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on evil_icons_flutter