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
385 B

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