Ultima version para Google Play, cambios en politicas y colores. Nuevo aviso legal
This commit is contained in:
11
lib/pages/utils.dart
Normal file
11
lib/pages/utils.dart
Normal file
@ -0,0 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
double getResponsiveFontSize(BuildContext context, double baseFontSize) {
|
||||
double screenWidth = MediaQuery.of(context).size.width;
|
||||
// Ajustar el tamaño del texto en función del ancho de la pantalla
|
||||
if (screenWidth > 600) {
|
||||
return baseFontSize * 1.6; // Aumentar el tamaño del texto en tablets
|
||||
} else {
|
||||
return baseFontSize; // Mantener el tamaño del texto en teléfonos
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user