feat: добавить визуальный элемент

This commit is contained in:
Artem Luzin m
2025-06-17 20:44:23 +07:00
parent f64f63641e
commit ead44f1b1a
2 changed files with 31 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ class ThemeScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final colors = context.colors;
return Scaffold(
appBar: AppBar(title: const Text('Theme')),
body: Center(
@@ -28,7 +29,25 @@ class ThemeScreen extends StatelessWidget {
child: const SizedBox(height: 100, width: 100),
),
const SizedBox(height: 16),
Text('Текущая тема: ${context.theme.themeMode}'),
Card(
elevation: 4,
shadowColor: colors.infoSnackbarBackground,
margin: const EdgeInsets.symmetric(vertical: 10),
color: colors.infoSnackbarBackground,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16),
),
child: ListTile(
title: Text(
'Текущая тема: ${context.theme.themeMode}',
style: TextStyle(
color: colors.itemTextColor,
fontWeight: FontWeight.bold,
),
),
trailing: Icon(Icons.color_lens, color: colors.itemTextColor),
),
),
],
),
),