Created
December 1, 2022 11:22
-
-
Save vijayinyoutube/22e387e2f0cbbd4bb029f75ea7204a0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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