Skip to content

Instantly share code, notes, and snippets.

@vijayinyoutube
Created December 1, 2022 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijayinyoutube/22e387e2f0cbbd4bb029f75ea7204a0b to your computer and use it in GitHub Desktop.
Save vijayinyoutube/22e387e2f0cbbd4bb029f75ea7204a0b to your computer and use it in GitHub Desktop.
class SliverSearch extends StatelessWidget {
const SliverSearch({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return SliverAppBar(
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
elevation: 0,
pinned: true,
bottom: const PreferredSize(
preferredSize: Size.fromHeight(-10.0), child: SizedBox()),
flexibleSpace: const SearchBar(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment