Split into multiple files

This commit is contained in:
2025-05-03 00:25:11 +02:00
parent 88f0b8d4d1
commit d9e66711e4
5 changed files with 147 additions and 85 deletions

30
lib/widgets/big_card.dart Normal file
View File

@@ -0,0 +1,30 @@
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),
),
);
}
}