Answers for "flutter app bottom search bar"

5

flutter app bottom search bar

AppBar(
          title: Text("News Home"),
          bottom: PreferredSize(
              preferredSize: Size.fromHeight(kToolbarHeight),
              child: InkWell(
                onTap: () {
                },
                child: Container(
                    //  padding: const EdgeInsets.all(8),
                    decoration: BoxDecoration(
                      borderRadius: BorderRadius.circular(10),
                      color: Colors.grey[300],
                    ),
                    child: Padding(
                      padding: const EdgeInsets.all(5.0),
                      child: Material(
                        color: Colors.grey[300],
                        child: Row(
                          mainAxisSize: MainAxisSize.min,
                          children: <Widget>[
                            Icon(Icons.search, color: Colors.grey),
                            Expanded(child: Text("Search news")),
                            InkWell(
                              child: Icon(
                                Icons.mic,
                                color: Colors.grey,
                              ),
                              onTap: () {},
                            )
                          ],
                        ),
                      ),
                    )),
              )),
        )
Posted by: Guest on February-27-2022

Code answers related to "flutter app bottom search bar"

Browse Popular Code Answers by Language