FlyPadding<T> mixin

Mixin that provides Tailwind-like padding methods for any widget

Mixin applications

Properties

copyWith → T Function(FlyStyle newStyle)
no setter
flyStyle FlyStyle
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyPadding(BuildContext context, Widget child) Widget
Applies padding to a widget using the resolved EdgeInsets
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
p(dynamic value) → T
Set uniform padding - accepts int, double, or String (token name/unit)
pb(dynamic value) → T
Set bottom padding - accepts int, double, or String (token name/unit)
pl(dynamic value) → T
Set left padding - accepts int, double, or String (token name/unit)
pr(dynamic value) → T
Set right padding - accepts int, double, or String (token name/unit)
pt(dynamic value) → T
Set top padding - accepts int, double, or String (token name/unit)
px(dynamic value) → T
Set horizontal padding (left + right) - accepts int, double, or String (token name/unit)
py(dynamic value) → T
Set vertical padding (top + bottom) - accepts int, double, or String (token name/unit)
resolvePadding(BuildContext context) EdgeInsets
Resolves padding from FlyStyle and FlyTheme into EdgeInsets
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited