import 'package:flutter/material.dart'; import 'package:practice_engine/practice_engine.dart'; class QuestionCard extends StatelessWidget { final Question question; const QuestionCard({ super.key, required this.question, }); @override Widget build(BuildContext context) { return Card( elevation: 4, child: Padding( padding: const EdgeInsets.all(24), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Row( children: [ Icon( Icons.quiz, color: Theme.of(context).colorScheme.primary, ), const SizedBox(width: 8), Text( 'Question', style: Theme.of(context).textTheme.titleMedium?.copyWith( color: Theme.of(context).colorScheme.primary, fontWeight: FontWeight.bold, ), ), ], ), const SizedBox(height: 16), Text( question.prompt, style: Theme.of(context).textTheme.titleLarge, ), ], ), ), ); } }