FlyMargin<T> mixin
Mixin that provides Tailwind-like margin methods for any widget
Properties
Methods
-
applyMargin(
BuildContext context, Widget child) → Widget - Applies margin to a widget using the resolved EdgeInsets
-
m(
dynamic value) → T - Set uniform margin - accepts int, double, or String (token name/unit)
-
mb(
dynamic value) → T - Set bottom margin - accepts int, double, or String (token name/unit)
-
ml(
dynamic value) → T - Set left margin - accepts int, double, or String (token name/unit)
-
mr(
dynamic value) → T - Set right margin - accepts int, double, or String (token name/unit)
-
mt(
dynamic value) → T - Set top margin - accepts int, double, or String (token name/unit)
-
mx(
dynamic value) → T - Set horizontal margin (left + right) - accepts int, double, or String (token name/unit)
-
my(
dynamic value) → T - Set vertical margin (top + bottom) - accepts int, double, or String (token name/unit)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveMargin(
BuildContext context) → EdgeInsets - Resolves margin from FlyStyle and FlyTheme into EdgeInsets
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited