ModernButton constructor

const ModernButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback onPressed,
  4. required Color backgroundColor,
  5. required Color foregroundColor,
  6. bool isPrimary = false,
  7. required bool isDark,
  8. bool isOutlined = false,
})

Implementation

const ModernButton({
  super.key,
  required this.text,
  required this.onPressed,
  required this.backgroundColor,
  required this.foregroundColor,
  this.isPrimary = false,
  required this.isDark,
  this.isOutlined = false,
});