marginCustom method
Create a custom margin based on the standard sizes you setup in your fundamental theme.
The values you are passing in offsets into the
list of 6 sizes you passed into AFAppFundamentalThemeAreaBuilder.setAfibFundamentals
.
The margin is constructed starting from the most general offset (all), and overriding it with more specific values (horizontal, vertical, then top, left, right, bottom). So, using
final m = t.marginScaledCustom(all: 3, b: 0)
Would give you your standard margin all around, but zero on the bottom.
If a margin side is not specified, it defaults to zero.
Implementation
EdgeInsets marginCustom({
int? all,
int? horizontal,
int? vertical,
int? top,
int? bottom,
int? left,
int? right,
}) {
return fundamentals.marginCustom(
all: all,
horizontal: horizontal,
vertical: vertical,
top: top,
bottom: bottom,
left: left,
right: right
);
}