QuizConfig constructor

const QuizConfig({
  1. EdgeInsetsGeometry padding = const EdgeInsets.all(20),
  2. double cornerRadius = 12,
  3. Color backgroundColor = const Color(0xFF1E3A8A),
  4. Color textColor = const Color(0xFFFFFFFF),
  5. Color questionTextColor = const Color(0xFFFFFFFF),
  6. double questionFontSize = 20,
  7. double optionFontSize = 18,
  8. bool showProgressIndicator = true,
  9. bool allowBackwardNavigation = true,
  10. bool requireAnswerToProgress = true,
  11. Duration animationDuration = const Duration(milliseconds: 300),
  12. bool enableAutoNavigation = true,
  13. Duration autoNavigationDelay = const Duration(milliseconds: 800),
  14. bool useGradientBackground = true,
  15. List<Color>? gradientColors,
})

Implementation

const QuizConfig({
  this.padding = const EdgeInsets.all(20),
  this.cornerRadius = 12,
  this.backgroundColor = const Color(0xFF1E3A8A),
  this.textColor = const Color(0xFFFFFFFF),
  this.questionTextColor = const Color(0xFFFFFFFF),
  this.questionFontSize = 20,
  this.optionFontSize = 18,
  this.showProgressIndicator = true,
  this.allowBackwardNavigation = true,
  this.requireAnswerToProgress = true,
  this.animationDuration = const Duration(milliseconds: 300),
  this.enableAutoNavigation = true,
  this.autoNavigationDelay = const Duration(milliseconds: 800),
  this.useGradientBackground = true,
  this.gradientColors,
});