getFromContext function
Implementation
NomoOutlineContainerThemeData getFromContext(
BuildContext context,
NomoOutlineContainer widget,
) {
final globalColorTheme =
NomoTheme.maybeOf(context)?.componentColors.outlineContainerColor ??
const NomoOutlineContainerColorData();
final globalSizingTheme =
NomoTheme.maybeOf(context)?.componentSizes.outlineContainerSizing ??
const NomoOutlineContainerSizingData();
const globalConstants = NomoOutlineContainerConstants();
final themeOverride = NomoOutlineContainerThemeOverride.maybeOf(context);
final themeData = NomoOutlineContainerThemeData.from(
globalColorTheme, globalSizingTheme, globalConstants)
.copyWith(themeOverride);
return NomoOutlineContainerThemeData(
foreground: widget.foreground ?? themeData.foreground,
background: widget.background ?? themeData.background,
shape: widget.shape ?? themeData.shape,
border: widget.border ?? themeData.border,
padding: widget.padding ?? themeData.padding,
spacing: widget.spacing ?? themeData.spacing,
);
}