[0.1.2]
This commit is contained in:
@@ -10,3 +10,11 @@ extension InsetsExtension on EdgeInsetsGeometry {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
extension InsetsNumExtension on num {
|
||||
EdgeInsets get symH => EdgeInsets.symmetric(horizontal: toDouble());
|
||||
EdgeInsets get symV => EdgeInsets.symmetric(vertical: toDouble());
|
||||
EdgeInsets get padAll => EdgeInsets.all(toDouble());
|
||||
EdgeInsets get padTop => EdgeInsets.only(top: toDouble());
|
||||
EdgeInsets get padBot => EdgeInsets.only(bottom: toDouble());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user