class FormularioTransferencia extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Criando Transferência'), ), body: Text('teste'), ); } }
class ListaTransferencias extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Transferências'), backgroundColor: Colors.blue, // Defina a cor da AppBar aqui ), body: Column( children: [ ItemTransferencia(Transferencia(100.0, 1000)), ItemTransferencia(Transferencia(200.0, 2000)), ItemTransferencia(Transferencia(300.0, 3000)), ], ), floatingActionButton: FloatingActionButton( onPressed: () { // Adicione o código que você deseja executar quando o botão for pressionado aqui! }, child: Icon(Icons.add), backgroundColor: Colors.blue, // Defina a cor do FloatingActionButton aqui ), ); } }
class ItemTransferencia extends StatelessWidget { final Transferencia _transferencia;
ItemTransferencia(this._transferencia);
@override Widget build(BuildContext context) { return Card( child: ListTile( leading: Icon(Icons.monetization_on), title: Text(_transferencia.valor.toString()), subtitle: Text(_transferencia.numConta.toString()), ), ); } }
class Transferencia { final double valor; final int numConta;
Transferencia(this.valor, this.numConta); }