ios_search_appbar 1.0.4
ios_search_appbar: ^1.0.4 copied to clipboard
iOS-style collapsible app bar with beautifully animated search bar
iOS Search AppBar #
The iOS Search AppBar package is a Flutter library that provides a collapsible app bar and a beautiful search bar animation, giving your Flutter app an iOS-style look and feel. It is fully customizable and compatible with both iOS and Android platforms.
Usage #
Add the ios_search_appbar package to your pubspec.yaml file:
dependencies:
ios_search_appbar: ^1.0.4
Import the package in your Dart code:
import 'package:ios_search_appbar/cupertino_search_appbar.dart';
Use CupertinoSearchAppBar by passing your content to the slivers parameter:
CupertinoSearchAppBar(
slivers: [
// Your slivers go here
],
)
Example:
class Example extends StatelessWidget {
const Example({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return CupertinoSearchAppBar(
//to customize search bar, use:
searchFieldProperties: SearchFieldProperties(),
//to customize app bar, use:
appBarProperties: AppBarProperties(),
slivers: [
SliverList(
delegate: SliverChildBuilderDelegate(
(context, index) {
return CupertinoListTile(title: Text("Title with index of $index"));
},
childCount: 15,
),
),
],
);
}
}