Skip to content

Commit 9fd8daa

Browse files
authored
Merge pull request #50 from Frezyx/fix-issues
Release version 2.0.1
2 parents ee7764b + d008003 commit 9fd8daa

12 files changed

+17
-42
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.0.1
2+
- **FIX**: Fix tap zone of bar item
3+
- **FIX**: Fix icon size passing from custom theme
14
## 2.0.0
25

36
- **BREAKING**: Implement BottomBarWithSheetController for working with items selection!

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
```yaml
1919
dependencies:
20-
bottom_bar_with_sheet: ^2.0.0
20+
bottom_bar_with_sheet: ^2.0.1
2121
```
2222
2323
### Add import package

example/lib/examples/without_background_bar_items_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class _MyHomePageState extends State<MyHomePage> {
2727
backgroundColor: Colors.grey[100],
2828
appBar: AppBar(
2929
backgroundColor: Colors.purple,
30-
title: Text('bottom_bar_with_sheet v2.0.0',
30+
title: Text('bottom_bar_with_sheet v2.0.1',
3131
style: TextStyle(color: Colors.white)),
3232
),
3333
body: Center(child: Text("Place for your content")),

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ packages:
2121
path: ".."
2222
relative: true
2323
source: path
24-
version: "2.0.0"
24+
version: "2.0.1"
2525
characters:
2626
dependency: transitive
2727
description:

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1515
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1616
# Read more about iOS versioning at
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18-
version: 2.0.0+1
18+
version: 2.0.1+1
1919

2020
environment:
2121
sdk: ">=2.7.0 <3.0.0"

lib/src/theme/bottom_bar_with_sheet_theme.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class BottomBarTheme {
6767
this.itemTextStyle,
6868
this.mainButtonPosition = MainButtonPosition.middle,
6969
this.decoration,
70-
this.itemIconSize = 20,
71-
this.selectedItemIconSize = 17,
70+
this.itemIconSize = 22,
71+
this.selectedItemIconSize = 24,
7272
});
7373
}

lib/src/widgets/bottom_bar_body.dart

Lines changed: 0 additions & 10 deletions
This file was deleted.

lib/src/widgets/bottom_bar_with_sheet_item.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class BottomBarWithSheetItemWidget extends StatelessWidget {
3737
Icon(
3838
model.icon,
3939
color: isSelected ? theme.selectedItemIconColor : theme.itemIconColor,
40+
size: isSelected ? theme.selectedItemIconSize : theme.itemIconSize,
4041
),
4142
];
4243

lib/src/widgets/bottom_bar_with_sheet_item_controller.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ class _BottmBarItemControllerState extends State<BottmBarItemController> {
4343
@override
4444
Widget build(BuildContext context) {
4545
return Expanded(
46-
child: GestureDetector(
46+
child: InkWell(
47+
focusColor: Colors.transparent,
48+
hoverColor: Colors.transparent,
49+
splashColor: Colors.transparent,
50+
highlightColor: Colors.transparent,
4751
onTap: () => widget.controller.selectItem(widget.index),
4852
child: BottomBarWithSheetItemWidget(
4953
model: widget.model,

lib/src/widgets/main_action_button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ class MainActionButton extends StatelessWidget {
77
Key? key,
88
required this.onTap,
99
required this.mainActionButtonTheme,
10-
this.button,
1110
required this.arrowAnimation,
1211
required this.arrowAnimationController,
1312
required this.enable,
13+
this.button,
1414
}) : super(key: key);
1515

1616
final Function() onTap;

0 commit comments

Comments
 (0)