You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansu_ui/lib/extension/widget_extension.dart

14 lines
381 B

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