Skip to content

Commit

Permalink
Merge pull request #23 from MarsadMaqsood/main
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
MarsadMaqsood authored Dec 8, 2023
2 parents 94ad2b7 + 189d17e commit a55d3b9
Show file tree
Hide file tree
Showing 11 changed files with 223 additions and 258 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#Test Files
test.*.dart

# Miscellaneous
*.class
*.log
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 1.1.0-beta-2
- Optimized the performance of `DotBarOptions` style
- Fixed: `Badge` padding issue [#22](https://github.com/MarsadMaqsood/stylish_bottom_bar/issues/22#issue-2029833633)
- Removed redundant code for increased efficiency.

## 1.1.0-beta
- Added new style `DotBarOptions`
- Added `NotchStyle`

## 1.0.3
- Fix: badge display issue when using `AnimatedBarOptions`
- Removed unnecessary code
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A collection of stylish bottom navigation bars like animated bottom bar and bubb
## ⭐ Installing <a name="installing"></a>

dependencies:
stylish_bottom_bar: ^1.1.0-beta
stylish_bottom_bar: ^1.1.0-beta-2

## ⚡ Import

Expand Down
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.example"
minSdkVersion 16
minSdkVersion flutter.minSdkVersion
targetSdkVersion 32
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
9 changes: 5 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class AnimatedBarExample extends StatefulWidget {
}

class _AnimatedBarExampleState extends State<AnimatedBarExample> {
dynamic selected;
var heart = false;
PageController controller = PageController();
int selected = 0;
bool heart = false;
final controller = PageController();

@override
void dispose() {
Expand Down Expand Up @@ -112,9 +112,10 @@ class _AnimatedBarExampleState extends State<AnimatedBarExample> {
],
hasNotch: true,
fabLocation: StylishBarFabLocation.end,
currentIndex: selected ?? 0,
currentIndex: selected,
notchStyle: NotchStyle.square,
onTap: (index) {
if (index == selected) return;
controller.jumpToPage(index);
setState(() {
selected = index;
Expand Down
9 changes: 2 additions & 7 deletions lib/model/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,11 @@ class DotBarOptions extends BottomBarOption {
/// The default color is `Colors.grey`.
final Color? inkColor;

/// Specifies the opacity of the navigation bar items' backgrounds.
/// The default value is `0.8`.
final double? opacity;

/// Specifies the style of dot.
///
/// * **`DotStyle.circle`:** Displays a circular dot.
/// * **`DotStyle.tile`:** Displays a tiled dot.
///
/// The default value is `DotStyle.circle`.
final DotStyle dotStyle;

Expand All @@ -156,7 +152,6 @@ class DotBarOptions extends BottomBarOption {
this.padding,
this.inkEffect = false,
this.inkColor = Colors.grey,
this.opacity = 0.8,
this.dotStyle = DotStyle.circle,
this.gradient,
});
Expand Down
Loading

0 comments on commit a55d3b9

Please sign in to comment.