mirrored_repositories/FlutterFoodyBite/lib
import 'package:flutter/material.dart';

class SizeConfig {
  static double screenWidth;
  static double screenHeight;

  static void initSize(BuildContext context) {
    final mediaQuery = MediaQuery.of(context);
    screenWidth = mediaQuery.size.width;
    screenHeight = mediaQuery.size.height;
  }
}

double getRelativeHeight(double percentage) {
  return percentage * SizeConfig.screenHeight;
}

double getRelativeWidth(double percentage) {
  return percentage * SizeConfig.screenWidth;
}
