FLabelStyles.inherit constructor

FLabelStyles.inherit({
  1. required FStyle style,
})

Creates a FLabelStyles that inherits its properties from the given style.

Implementation

FLabelStyles.inherit({required FStyle style})
    : horizontalStyle = (
        layout: const FLabelLayoutStyle(
          childPadding: EdgeInsets.symmetric(horizontal: 8),
          descriptionPadding: EdgeInsets.only(top: 2),
          errorPadding: EdgeInsets.only(top: 2),
        ),
        state: FLabelStateStyles.inherit(style: style),
      ),
      verticalStyle = (
        layout: const FLabelLayoutStyle(
          labelPadding: EdgeInsets.only(bottom: 5),
          descriptionPadding: EdgeInsets.only(top: 5),
          errorPadding: EdgeInsets.only(top: 5),
        ),
        state: FLabelStateStyles.inherit(style: style)
      );