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.
HMG_Patient_App_New/lib/extensions/int_extensions.dart

12 lines
363 B
Dart

import 'package:flutter/material.dart';
extension IntExtensions on int {
Widget get height => SizedBox(height: toDouble());
Widget get width => SizedBox(width: toDouble());
Widget get divider => Divider(height: toDouble(), thickness: toDouble(), color: Color(0x30D2D2D2));
Widget get makeItSquare => SizedBox(width: toDouble(), height: toDouble());
}