FStyle.inherit constructor
FStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required bool touch,
Creates an FStyle that inherits its properties.
Implementation
factory FStyle.inherit({required FColors colors, required FTypography typography, required bool touch}) {
const borderRadius = FBorderRadius();
return FStyle(
formFieldStyle: .inherit(colors: colors, typography: typography, touch: touch),
focusedOutlineStyle: FFocusedOutlineStyle(color: colors.primary, borderRadius: borderRadius.md),
sizes: FSizes.inherit(touch: touch),
iconStyle: IconThemeData(color: colors.foreground, size: typography.lg.fontSize),
tappableStyle: FTappableStyle(),
);
}