finish v3
This commit is contained in:
@@ -19,13 +19,19 @@ class KanjiCard extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
final bgColor = backgroundColor ?? theme.cardTheme.color ?? theme.colorScheme.surface;
|
||||
final fgColor = textColor ?? theme.textTheme.bodyMedium?.color ?? theme.colorScheme.onSurface;
|
||||
final bgColor =
|
||||
backgroundColor ?? theme.cardTheme.color ?? theme.colorScheme.surface;
|
||||
final fgColor =
|
||||
textColor ??
|
||||
theme.textTheme.bodyMedium?.color ??
|
||||
theme.colorScheme.onSurface;
|
||||
|
||||
return Card(
|
||||
elevation: theme.cardTheme.elevation ?? 12,
|
||||
color: bgColor,
|
||||
shape: theme.cardTheme.shape ?? RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
||||
shape:
|
||||
theme.cardTheme.shape ??
|
||||
RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
||||
child: SizedBox(
|
||||
width: 360,
|
||||
height: 240,
|
||||
|
||||
Reference in New Issue
Block a user