INFRA: Set Up Project.
This commit is contained in:
11
lib/themes/responsive.dart
Normal file
11
lib/themes/responsive.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class Responsive {
|
||||
static double width(double size, BuildContext context) {
|
||||
return MediaQuery.of(context).size.width * (size / 100);
|
||||
}
|
||||
|
||||
static double height(double size, BuildContext context) {
|
||||
return MediaQuery.of(context).size.height * (size / 100);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user