ThemeableTextButton constructor

ThemeableTextButton({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. required Widget child,
  4. required Color bg,
  5. TextStyle? textStyle,
  6. required Color fg,
})

Implementation

ThemeableTextButton(
    {super.key,
    required super.onPressed,
    required super.child,
    required Color bg,
    TextStyle? textStyle,
    required Color fg})
    : super(
          style: ButtonStyle(
              iconColor: WidgetStatePropertyAll<Color>(fg),
              textStyle:
                  WidgetStatePropertyAll<TextStyle>(textStyle ?? TextStyle(color: fg)),
              backgroundColor: WidgetStatePropertyAll<Color>(bg)));