Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Made by Samir
- //title: Text('PAYS'),
- //centerTitle: true,
- title: !isSearching
- ? Text('Statistiques')
- : TextField(
- decoration: InputDecoration(
- icon: Icon(
- Icons.search,
- color: Colors.white,
- ),
- hintText: 'Nom du pays',
- hintStyle: TextStyle(
- color: Colors.white,
- )),
- ),
- centerTitle: true,
- actions: [
- isSearching
- ? IconButton(
- icon: Icon(Icons.cancel),
- onPressed: () {
- setState(() {
- this.isSearching = false;
- });
- })
- : IconButton(
- icon: Icon(Icons.search),
- onPressed: () {
- showSearch(
- context: null,
- delegate: NameSearch(covidAllDataCountries));
- setState(() {
- this.isSearching = true;
- });
- },
- ),
- ],
- ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement