perHeight static method
Retorna percentual da altura total. percentage vai de 0 à 100
Implementation
static double perHeight(BuildContext context, int percentage) {
return (MediaQuery.of(context).size.height * percentage) / 100;
}
Retorna percentual da altura total. percentage vai de 0 à 100
static double perHeight(BuildContext context, int percentage) {
return (MediaQuery.of(context).size.height * percentage) / 100;
}