diff --git a/CHANGELOG.md b/CHANGELOG.md index 78351e4..c281aa8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ - ##[1.1.1] + ##[1.0.1] -* circle flutter bottom bar +* icon shadow diff --git a/README.md b/README.md index 6818506..96b7392 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# Animation circle bottom bar +# Icon shadow -Flutter circle bottom bar by animation +Flutter Icon shadow -![](https://github.com/mehrtarh/animation_circle_bottom_bar/blob/master/sample_screen.png?raw=true) +![](https://raw.githubusercontent.com/mehrtarh/flutter_icon_shadow/master/sample.png) #### how to use: @@ -11,42 +11,22 @@ Flutter circle bottom bar by animation ##### 1. add dependencies to pubspec.yaml: ```yaml -circle_bottombar: ^1.1.1 + icon_shadow: ^1.0.1 ``` -##### 2. create tabs: -```dart - List tabItems = List.of([ - new TabItem(Icons.person_outline, Colors.red.shade100), - new TabItem(Icons.lightbulb_outline, Colors.red.shade200), - new TabItem(Icons.home, Colors.red.shade300), - new TabItem(Icons.phone_locked, Colors.red.shade400), - new TabItem(Icons.person_outline, Colors.red.shade500), - ]); -``` +##### 2. add icons: -##### 3. create bottombar: ```dart -bottomNavigationBar: CircularBottomNavigation( - tabItems, - selectedCallback: (int selectedPos) { - setState(() { - _text = "text " + selectedPos.toString(); - }); - print("clicked on $selectedPos"); - }, - controller: _navigationController, - barBackgroundColor: Colors.black, - normalIconColor: Colors.red.shade900, - iconsSize: 24, - selectedIconColor: Colors.white, - animationDuration: Duration(milliseconds: 500), - circleStrokeWidth: 5, - circleStrokeColor: Color(0xFF680200), - barShadowSize: 2.0, - barLineColor: Colors.red.shade900, - barLineSize: 2.0, - barShowLine: true, - ) +Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + IconShadowWidget(Icon(Icons.lightbulb_outline, + color: Colors.lightBlueAccent, size: 36)), + IconShadowWidget(Icon(Icons.lightbulb_outline, + color: Colors.lightBlueAccent, size: 36),shadowColor: Colors.lightBlueAccent.shade100,), + IconShadowWidget(Icon(Icons.lightbulb_outline, + color: Colors.lightBlueAccent, size: 36),showShadow: false,) + ], + ) ``` \ No newline at end of file diff --git a/example/lib/main.dart b/example/lib/main.dart index 33dc80e..347ace3 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -50,7 +50,7 @@ class _MyHomePageState extends State with TickerProviderStateMixin { color: Colors.lightBlueAccent, size: 36)), IconShadowWidget(Icon(Icons.lightbulb_outline, color: Colors.lightBlueAccent, size: 36),shadowColor: Colors.lightBlueAccent.shade100,), - IconShadowWidget(Icon(Icons.lightbulb_outline, + IconShadowWidget(Icon(Icons.lightbulb_outline, color: Colors.lightBlueAccent, size: 36),showShadow: false,) ], ), diff --git a/pubspec.yaml b/pubspec.yaml index bd53f15..d1b571d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: icon_shadow description: flutter icon shadow. -version: 1.0.0 +version: 1.0.1 author: Mehran Jafari homepage: https://github.com/mehrtarh/flutter_icon_shadow diff --git a/sample.PNG b/sample.PNG new file mode 100644 index 0000000..faf821e Binary files /dev/null and b/sample.PNG differ