gameBox method
Implementation
Container gameBox(BuildContext context, GameData gameData) {
return Container(
width: defaultWidth * 0.7,
margin: EdgeInsets.only(bottom: defaultWidth * 0.05),
padding: EdgeInsets.all(defaultWidth * 0.05),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background,
borderRadius: const BorderRadius.all(Radius.circular(15)),
border: Border.all(
color: Theme.of(context).colorScheme.primary,
width: 1.25,
)),
child: Column(children: [
Text(
convertirFecha(gameData.createdAt),
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 17,
color: Theme.of(context).colorScheme.primary,
),
),
SizedBox(height: defaultWidth * 0.05),
Text(
gameData.gameType,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 17,
color: Theme.of(context).colorScheme.primary,
),
),
SizedBox(height: defaultWidth * 0.05),
SizedBox(height: defaultWidth * 0.05),
playButton(context, "Restaurar",
() => _handleTapRes(gameData.id, context, gameData.gameType)),
]),
);
}