You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
456 B
Dart
17 lines
456 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../models/size_config.dart';
|
|
|
|
extension IntExtensions on int {
|
|
Widget get height => SizedBox(height: toScreenHeight);
|
|
|
|
Widget get width => SizedBox(width: toScreenWidth);
|
|
|
|
Widget get makeItSquare => SizedBox(width: toScreenWidth, height: toScreenWidth);
|
|
|
|
double get toScreenHeight => (this / 932) * SizeConfig.screenHeight!;
|
|
|
|
double get toScreenWidth => (this / 430) * SizeConfig.screenWidth!;
|
|
|
|
}
|