num ext add padding

null_safety
小赖 4 years ago
parent 718f7f6d18
commit 1b170db87a

@ -11,6 +11,11 @@ extension NumExt on num {
/// EdgeInsets.all
EdgeInsets get edge => EdgeInsets.all(this.w);
EdgeInsets pading(double horizontal, double vertical) => EdgeInsets.symmetric(
horizontal: horizontal,
vertical: vertical,
);
///
BorderRadius get radius => BorderRadius.circular(this.w);

@ -2,4 +2,5 @@ import 'package:flutter/material.dart';
extension WidgetExt on Widget {
Widget get expanded => Expanded(child: this);
Widget get center => Center(child: this);
}

Loading…
Cancel
Save