GFTypography constructor

const GFTypography({
  1. Key? key,
  2. GFTypographyType type = GFTypographyType.typo4,
  3. Widget? child,
  4. String? text,
  5. Widget? icon,
  6. BorderRadius? dividerBorderRadius,
  7. Color? textColor,
  8. Alignment? dividerAlignment,
  9. Color? dividerColor,
  10. bool showDivider = true,
  11. double? dividerWidth,
  12. double? dividerHeight,
  13. ImageProvider<Object>? backgroundImage,
  14. ColorFilter? backgroundImagecolorFilter,
  15. 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);