Instantly share code, notes, and snippets.

Embed
What would you like to do?
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