hinttexto e a barra superior não aparecem segue meu código
// ignore_for_file: prefer_const_literals_to_create_immutables, prefer_const_constructors
import 'package:flutter/material.dart';
void main() => runApp(ByteBankApp());
class ByteBankApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: FormularioTransferencia(), )); } }
class FormularioTransferencia extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Criando Transferência'), ), body: Column( children: [ TextField( decoration: InputDecoration(labelText: 'Número da Conta', hintText: '0000'), ), TextField(), ElevatedButton( onPressed: () { // Adicione a lógica que você deseja executar quando o botão for pressionado }, child: Text('Confirmar'), ), ], ), ); } }
class ListaTransferencias extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Transferências'), ), 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); }