nice_searchbar 0.0.3
nice_searchbar: ^0.0.3 copied to clipboard
A customizable, animated search bar for Flutter applications.
NiceSearchBar #
A customizable, animated search bar for Flutter applications.
Features #
- Animated search bar that expands and collapses
- Customizable hint text
- Optional additional function on toggle
Installation #
Add this to your pubspec.yaml:
dependencies:
nice_searchbar:
git:
url: https://github.com/didierganthier/nice_searchbar.git
Then run:
flutter pub get
Usage #
Import the package:
import 'package:nice_searchbar/nice_searchbar.dart';
Use it in your app:
NiceSearchBar(
hint: "Search...",
onChanged: (value) {
print("Search input: $value");
},
additionalFunction: () {
print("AppBar toggled!");
},
);
Note: This widget will not work if used inside an AppBar unless properly configured. Ensure you handle layout constraints and widget placement correctly when integrating it into an AppBar.