GFTypography constructor
const
GFTypography({
- Key? key,
- GFTypographyType type = GFTypographyType.typo4,
- Widget? child,
- String? text,
- Widget? icon,
- BorderRadius? dividerBorderRadius,
- Color? textColor,
- Alignment? dividerAlignment,
- Color? dividerColor,
- bool showDivider = true,
- double? dividerWidth,
- double? dividerHeight,
- ImageProvider<
Object> ? backgroundImage, - ColorFilter? backgroundImagecolorFilter,
- FontWeight fontWeight = FontWeight.w500,
Creates simple title with underline. Style of title can be changed using GFTypographyType showDivider is default true, can be set false.
Implementation
const GFTypography({
Key? key,
this.type = GFTypographyType.typo4,
this.child,
this.text,
this.icon,
this.dividerBorderRadius,
this.textColor,
this.dividerAlignment,
this.dividerColor,
this.showDivider = true,
this.dividerWidth,
this.dividerHeight,
this.backgroundImage,
this.backgroundImagecolorFilter,
this.fontWeight = FontWeight.w500,
}) : assert(text != null || child != null),
super(key: key);