13 lines
346 B
Dart
Executable File
13 lines
346 B
Dart
Executable File
import 'package:flutter/material.dart';
|
|
|
|
extension Space on num {
|
|
SizedBox get verticalSpace => SizedBox(height: toDouble());
|
|
SizedBox get horizontalSpace => SizedBox(width: toDouble());
|
|
}
|
|
|
|
extension Extent on BuildContext {
|
|
Size get size => MediaQuery.of(this).size;
|
|
double get width => size.width;
|
|
double get height => size.height;
|
|
}
|