Textfield flutter using Cupertino theme

Asked

Viewed 173 times

0

I need to do a search bar next to this field "Contacts":

child: CustomScrollView(
          //semanticChildCount: totalRows,
          slivers: <Widget>[
            CupertinoSliverNavigationBar(
              largeTitle: Text("Contatos"),

              //trailing: trailingButtons,
            ),

Basically a TextField with a magnifying glass icon.

I’ve been reading on Flutter’s official website how I could do this but I didn’t understand it very well.

How could I make a search bar like the one I mentioned above?

Note: I’m new to Flutter.

  • I particularly don’t like this solution, for personal experience users will want to click on the magnifying glass, so I use a Row with Textfield and a Flatbuttom.

1 answer

3


Browser other questions tagged

You are not signed in. Login or sign up in order to post.