diff --git a/.dart_tool/package_config.json b/.dart_tool/package_config.json index 954aa4b..59fc49b 100644 --- a/.dart_tool/package_config.json +++ b/.dart_tool/package_config.json @@ -362,7 +362,7 @@ "languageVersion": "3.3" } ], - "generated": "2024-06-09T09:54:10.130369Z", + "generated": "2024-06-09T10:01:52.063247Z", "generator": "pub", "generatorVersion": "3.4.3", "flutterRoot": "file:///opt/homebrew/Caskroom/flutter/3.16.7/flutter", diff --git a/CHANGELOG.md b/CHANGELOG.md index 34ae1cb..70c3e4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.0.8 +## 0.0.9 * TODO: Fixed bug * TODO: update doc \ No newline at end of file diff --git a/README.md b/README.md index 7d91c7d..535ad19 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Add the following dependency in your `pubspec.yaml` file: ```yaml dependencies: - flutter_buttombar_chung: ^0.0.8 + flutter_buttombar_chung: ^0.0.9 ``` ## Usage diff --git a/lib/src/flutter_buttombar_chung_painter.dart b/lib/src/flutter_buttombar_chung_painter.dart index 541d6dd..ccb1741 100644 --- a/lib/src/flutter_buttombar_chung_painter.dart +++ b/lib/src/flutter_buttombar_chung_painter.dart @@ -1,4 +1,3 @@ - import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/src/flutter_buttombar_chung_widget.dart b/lib/src/flutter_buttombar_chung_widget.dart index b804838..1e77675 100644 --- a/lib/src/flutter_buttombar_chung_widget.dart +++ b/lib/src/flutter_buttombar_chung_widget.dart @@ -10,7 +10,8 @@ class FlutterButtombarChungWidget extends StatelessWidget { final String? label; final TextStyle? labelStyle; - const FlutterButtombarChungWidget({super.key, + const FlutterButtombarChungWidget({ + super.key, required this.onTap, required this.position, required this.length, diff --git a/pubspec.yaml b/pubspec.yaml index 6c59483..a64ccc3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_buttombar_chung description: " The customized Flutter bottom navigation bar has a curved design and advanced functions, and has a wave-like effect, which is very smooth." -version: 0.0.8 +version: 0.0.9 homepage: https://chung-hong-hao.web.app repository: https://github.com/CHUNG-HAO/flutter_buttombar_chung diff --git a/test/flutter_buttombar_chung_test.dart b/test/flutter_buttombar_chung_test.dart index 1e83917..929e041 100644 --- a/test/flutter_buttombar_chung_test.dart +++ b/test/flutter_buttombar_chung_test.dart @@ -100,7 +100,8 @@ void main() { // Tap the second item and verify the animation is triggered await tester.tap(find.text('Search')); await tester.pump(); // Start the animation - await tester.pump(const Duration(milliseconds: 300)); // Halfway through animation + await tester + .pump(const Duration(milliseconds: 300)); // Halfway through animation // Verify intermediate animation state // Check for partial translation or opacity changes