TwPadding<T> mixin
Mixin that provides Tailwind-like padding methods for any widget
- Mixin applications
Properties
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