QuizConfig constructor
const
QuizConfig({
- EdgeInsetsGeometry padding = const EdgeInsets.all(20),
- double cornerRadius = 12,
- Color backgroundColor = const Color(0xFF1E3A8A),
- Color textColor = const Color(0xFFFFFFFF),
- Color questionTextColor = const Color(0xFFFFFFFF),
- double questionFontSize = 20,
- double optionFontSize = 18,
- bool showProgressIndicator = true,
- bool requireAnswerToProgress = true,
- Duration animationDuration = const Duration(milliseconds: 300),
- bool useGradientBackground = true,
- 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,
});