Files
instructor_web/lib/widgets/big_card.dart
2025-05-03 00:25:11 +02:00

31 lines
686 B
Dart

library;
import 'package:english_words/english_words.dart';
import 'package:flutter/material.dart';
class BigCard extends StatelessWidget {
const BigCard({
super.key,
required this.pair,
});
final WordPair pair;
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final style = theme.textTheme.displayMedium!.copyWith(
color: theme.colorScheme.onPrimary,
);
return Card(
color: theme.colorScheme.primary,
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Text(pair.asLowerCase,
semanticsLabel: "${pair.first} ${pair.second}", style: style),
),
);
}
}