class DesafioTela extends StatefulWidget {
const DesafioTela({super.key});
@override
State<DesafioTela> createState() => _DesafioTelaState();
}
class _DesafioTelaState extends State<DesafioTela> {
String playlist = "";
String playlist2 = "";
double playlistProgress = 0.0;
@override
Widget build(BuildContext context) {
return Container(
color: Colors.grey.shade800,
width: 100,
height: 100,
child: Padding(
padding: const EdgeInsets.fromLTRB(0, 0, 0, 130),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
alignment: Alignment.center,
width: 350,
height: 50,
color: Colors.black,
child: const Text(
"Escolha seu Ritímo",
style: TextStyle(
color: Colors.white,
fontSize: 18,
decoration: TextDecoration.underline,
decorationColor: Colors.black,
),
),
),
``` Text(
playlist,
style: TextStyle(
color: Colors.white,
fontSize: 20,
decoration: TextDecoration.underline,
decorationColor: Colors.grey.shade800,
),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
GestureDetector(
onTap: () {
setState(() {
playlist2 = "Você escolheu forró";
playlistProgress++;
});
},
child: Container(
alignment: Alignment.center,
width: 70,
height: 70,
color: Colors.yellow,
child: const Text(
"Forró",
style: TextStyle(
color: Colors.black,
fontSize: 10,
decoration: TextDecoration.underline,
decorationColor: Colors.yellow,
),
),
),
),
GestureDetector( onTap: () { setState(() { playlist2 = "Você escolheu Pagode"; playlistProgress++; }); }, child: Container( alignment: Alignment.center, width: 70, height: 70, color: Colors.orange, child: const Text( "Pagode", style: TextStyle( color: Colors.black, fontSize: 10, decoration: TextDecoration.underline, decorationColor: Colors.orange, ), ), ), ), GestureDetector( onTap: () { setState(() { playlist2 = "Você escolheu Sertanejo"; playlistProgress++; }); }, child: Container( alignment: Alignment.center, width: 70, height: 70, color: Colors.red, child: const Text( "Sertanejo", style: TextStyle( color: Colors.black, fontSize: 10, decoration: TextDecoration.underline, decorationColor: Colors.red, ), ), ), ) ], ),