@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: LinearGradient(
colors: \[Colors.blue.shade300, Colors.blue.shade900\],
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
),
),
child: Center(
child: Padding(
padding: const EdgeInsets.all(24.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: \[
Text(
'VersÃculo do Dia',
style: TextStyle(
fontSize: 28,
color: Colors.white,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 40),
Container(
padding: EdgeInsets.all(20),
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.9),
borderRadius: BorderRadius.circular(20),
),
child: Text(
versiculoAtual,
style: TextStyle(
fontSize: 20,
fontStyle: FontStyle.italic,
color: Colors.black87,
),
textAlign: TextAlign.center,
),
),
SizedBox(height: 30),
ElevatedButton.icon(
onPressed: gerarVersiculo,
icon: Icon(Icons.refresh),
label: Text('Novo VersÃculo'),
style: ElevatedButton.styleFrom(
backgroundColor: Colors.white,
foregroundColor: Colors.blueAccent,
),
),
\],
),
),
),
),
);
}