Estou recebendo erro ao tentar executar os códigos conforme as aulas o código é:
void main() {
runApp(
MaterialApp(
home: Scaffold(
body: TransferList(),
appBar: AppBar(
title: Text("Transferencias"),
),
floatingActionButton: FloatingActionButton(
child: Icon(Icons.add),
),
),
)
);
}
class TransferList extends StatelessWidget{
@override
Widget build(BuildContext context) {
// TODO: implement build
throw Column(
children: [
Card(
child: ListTile(
leading: Icon(Icons.monetization_on),
title: Text("Valor"),
subtitle: Text("Conta"),
)
),
Card(
child: ListTile(
leading: Icon(Icons.monetization_on),
title: Text("Valor"),
subtitle: Text("Conta"),
)
),
],
);
}
}
e o erro é: The following Column object was thrown building TransferList(dirty): Column(direction: vertical, mainAxisAlignment: center, crossAxisAlignment: center)