mirror of
https://github.com/chenasraf/flutter_icon_shadow.git
synced 2026-05-17 17:48:06 +00:00
change version
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
##[1.1.1]
|
||||
##[1.0.1]
|
||||
|
||||
* circle flutter bottom bar
|
||||
* icon shadow
|
||||
|
||||
52
README.md
52
README.md
@@ -1,9 +1,9 @@
|
||||
# Animation circle bottom bar
|
||||
# Icon shadow
|
||||
|
||||
Flutter circle bottom bar by animation
|
||||
Flutter Icon shadow
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
#### 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,)
|
||||
],
|
||||
)
|
||||
```
|
||||
@@ -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,)
|
||||
],
|
||||
),
|
||||
|
||||
@@ -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
BIN
sample.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user