-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
100 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
), | ||
), | ||
], | ||
); | ||
} | ||
} |