TwPadding<T> mixin

Mixin that provides Tailwind-like padding methods for any widget

Mixin applications

Properties

copyWith → T Function(TwStyle newStyle)
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
style TwStyle
no setter

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(int step) → T
Set uniform padding using token scale
pb(int step) → T
Set bottom padding using token scale
pl(int step) → T
Set left padding using token scale
pr(int step) → T
Set right padding using token scale
pt(int step) → T
Set top padding using token scale
px(int step) → T
Set horizontal padding (left + right) using token scale
py(int step) → T
Set vertical padding (top + bottom) using token scale
resolvePadding(BuildContext context) EdgeInsets
Resolves padding from TwStyle and TwTheme into EdgeInsets
toString() String
A string representation of this object.
inherited

Operators

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