Skip to content

Commit

Permalink
Complete v0.1.0 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvc12 authored Apr 23, 2019
1 parent 605979c commit 0292cea
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
## Version 0.1.0
## Version 0.1.0 (23-04-2019)
- Package created with full evil icons
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ Flutter package for [Evil Icons](http://evil-icons.io/)
[![Build Status](https://travis-ci.com/tvc12/evil_icons_flutter.svg?branch=master)](https://travis-ci.com/tvc12/evil_icons_flutter)
![](https://img.shields.io/github/contributors/tvc12/evil_icons_flutter.svg)
![GitHub](https://img.shields.io/github/license/tvc12/evil_icons_flutter.svg)
![GitHub](https://img.shields.io/github/license/tvc12/evil_icons_flutter.svg)
![](https://img.shields.io/badge/pub-v0.1.0-blue.svg)

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

![](demo.png)

### Usage

See more icon at [EvilIcons](http://evil-icons.io/) by [Alexander Madyankin](https://github.com/outpunk) & [Roman Shamin](https://twitter.com/romanshamin) (**70** icons)
Expand Down Expand Up @@ -41,6 +43,6 @@ class User extends StatelessWidget {

### License

This project is licenced under the [MIT]()
This project is licenced under the [MIT](https://github.com/tvc12/evil_icons_flutter/blob/master/LICENSE)

Any bundled fonts are copyright to their respective authors under MIT
Binary file added demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 95 additions & 2 deletions example/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,97 @@
import 'package:flutter/material.dart';
import 'package:evil_icons_flutter/evil_icons_flutter.dart';
import 'package:flutter/widgets.dart';

//Icon(EvilIcons.archive);
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({Key key, this.title}) : 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: () {
print(name);
},
),
Text(name,
style: TextStyle(
color: iconColor,
fontWeight: FontWeight.bold,
fontSize: 16
),
),
],
);
}
}

0 comments on commit 0292cea

Please sign in to comment.