Skip to content

Instantly share code, notes, and snippets.

@MarcinusX MarcinusX/widget_utils.dart Secret
Created Aug 24, 2018

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
You can’t perform that action at this time.