Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #23

Merged
merged 4 commits into from
Dec 8, 2023
Merged

Main #23

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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