A Administração Sobre Projeto
Por: Guilherme Alcântara • 9/12/2020 • Monografia • 2.289 Palavras (10 Páginas) • 105 Visualizações
String text = 'a';
int a = 10;
int page = 1;
String _pesquisa;
String texto;
final ClienteRepository _clienteRepository = ClienteRest();
final PerfilRepository _perfilRepository = PerfilRest();
ScrollController _scrollController = new ScrollController();
@override
void initState()
{
}
@override
Widget build(BuildContext context) {
return Scaffold(
resizeToAvoidBottomPadding: true,
appBar: PreferredSize(
preferredSize: Size.fromHeight(70),
child: AppBar(
backgroundColor: Color(0xff303030), // Cinza escuro de fundo
leading: new IconButton(
icon: Icon(
Icons.arrow_back,
color: Colors.white,
),
onPressed: () {
Navigator.pop(context);
// Navigator.push(
// context,
// MaterialPageRoute(builder: (context) => Home()),
// );
},
padding: EdgeInsets.only(top: 20),
iconSize: 28),
actions: <Widget>[
IconButton(
icon: Icon(
Icons.search,
color: Colors.white,
),
onPressed: () {
showSearch(context: context, delegate: Search());
},
iconSize: 30,
padding: EdgeInsets.only(top: 20.0),
),
IconButton(
icon: new Icon(
Icons.filter_list,
color: Colors.white,
),
onPressed: null,
padding: EdgeInsets.only(top: 20),
),
PopupMenuButton<String>(
color: Colors.white,
onSelected: choiceAction,
icon: IconButton(
icon: new Icon(
Icons.more_vert,
color: Colors.white,
),
onPressed: null,
padding: EdgeInsets.only(top: 20),
),
itemBuilder: (BuildContext context) {
return Constants.choices.map((String choice) {
return PopupMenuItem<String>(
value: choice,
child: Text(choice),
);
}).toList();
},
),
],
title: Padding(
padding: EdgeInsets.only(top: 20.0),
child: Text(
"$texto",
style: TextStyle(
fontSize: 22.0,
color:
...