change version

This commit is contained in:
mehrtarh@yahoo.com
2019-05-21 11:08:54 +04:30
parent 9f64053907
commit ddf7041597
5 changed files with 20 additions and 40 deletions

View File

@@ -1,3 +1,3 @@
##[1.1.1]
##[1.0.1]
* circle flutter bottom bar
* icon shadow

View File

@@ -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<TabItem> 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: <Widget>[
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,)
],
)
```

View File

@@ -50,7 +50,7 @@ class _MyHomePageState extends State<MyHomePage> 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,)
],
),

View File

@@ -1,6 +1,6 @@
name: icon_shadow
description: flutter icon shadow.
version: 1.0.0
version: 1.0.1
author: Mehran Jafari <mehran.flutter@gmail.com>
homepage: https://github.com/mehrtarh/flutter_icon_shadow

BIN
sample.PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB