Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Made by Samir
- IconButton(
- onPressed: () {
- setState(() {
- if (this.cusIcon.icon == Icons.search) {
- this.cusIcon = Icon(Icons.cancel);
- this.cusSearchBar = TextField(
- textInputAction: TextInputAction.go,
- decoration: InputDecoration(hintText: "Search "),
- style: TextStyle(
- color: Colors.white,
- fontSize: 16,
- ),
- );
- } else {
- this.cusIcon = Icon(Icons.search);
- this.cusSearchBar = Text('AppBar');
- }
- });
- },
- icon: cusIcon,
- ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement