Skip to content

Instantly share code, notes, and snippets.

@MarcinusX
Created August 24, 2018 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcinusX/321fb3b3695cd511e1416677368d5ce5 to your computer and use it in GitHub Desktop.
Save MarcinusX/321fb3b3695cd511e1416677368d5ce5 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
const double baseHeight = 650.0;
double screenAwareSize(double size, BuildContext context) {
return size * MediaQuery.of(context).size.height / baseHeight;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment