1

I have added the AppBar search icon thanks to the article below. Article: How to implement a Flutter Search App Bar

Likewise, how do I add a showSearch () to a button in the bottom navigation bar? Thanks for all.

showSearch():

showSearch(context: context, delegate: DataSearch(listWords));

Search Page Class

class _SearchPageState extends State<SearchPage> {
  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Container(),
    );
  }
}

PageList for NavigationBar:

  List<Widget> _pageOptions = [
    AppBody(
      key: PageStorageKey('AllCryptoList'),
    ),
    FavoritesList(
      key: PageStorageKey('FavoriteCryptoList'),
    ),
    SearchPage(
      key: PageStorageKey('SearchPage'),
    ),
    InfoPage(
      key: PageStorageKey('AppInfoPage'),
    ),
  ];

Output Navigation Bar ScreenShot

Berkan
  • 11
  • 1
  • If everyone begins to ask similar questions here, then there will be a trillion of similar, nobody interesting questions. – mezoni May 15 '20 at 05:29

0 Answers0