|
|
@ -3,4 +3,11 @@ import 'package:flutter/material.dart';
|
|
|
|
extension WidgetExt on Widget {
|
|
|
|
extension WidgetExt on Widget {
|
|
|
|
Widget get expanded => Expanded(child: this);
|
|
|
|
Widget get expanded => Expanded(child: this);
|
|
|
|
Widget get center => Center(child: this);
|
|
|
|
Widget get center => Center(child: this);
|
|
|
|
|
|
|
|
Widget padding(double horizontal, [double vertical]) => Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
|
|
|
|
horizontal: horizontal,
|
|
|
|
|
|
|
|
vertical: vertical,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: this,
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|