This commit is contained in:
2025-03-30 12:16:43 +02:00
parent 11aee47f80
commit 97020cf117
9 changed files with 160 additions and 18 deletions

View File

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