Commit 6c25f5e9 by Diego Pérez Peña Committed by Tecnicos

Agregada orientación para la pantalla final y la de récords

parent 508e88e1
...@@ -619,8 +619,10 @@ class _PantallaJuegoState extends State<PantallaJuego> ...@@ -619,8 +619,10 @@ class _PantallaJuegoState extends State<PantallaJuego>
// TODO: Agregar una pantalla de registro de récords // TODO: Agregar una pantalla de registro de récords
Widget _buildPantallaFinal(Orientation orientation){ Widget _buildPantallaFinal(Orientation orientation){
final fullWidth = MediaQuery.of(context).size.width; final fullWidth = (orientation == Orientation.portrait)?
final fullHeight = 380.0; MediaQuery.of(context).size.width - MediaQuery.of(context).padding.horizontal : 400.0;
final fullHeight = (orientation == Orientation.portrait)?
380.0 : MediaQuery.of(context).size.height - MediaQuery.of(context).padding.vertical;
return SizedBox( return SizedBox(
width: fullWidth, width: fullWidth,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment