@ -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);
}