m3_lightmeter/lib/screens/settings/components/theme/widget_settings_theme.dart
Vadim 9477f80ada
ML-6 Add support for dynamic colors on A12+ (#8)
* added dynamic colors

* made dynamic colors enabled/disabled

* fixed tests
2023-01-22 22:30:29 +03:00

20 lines
603 B
Dart

import 'package:flutter/material.dart';
import 'package:lightmeter/data/models/dynamic_colors_state.dart';
import 'package:provider/provider.dart';
import 'components/widget_list_tile_dynamic_colors.dart';
import 'components/widget_list_tile_theme_type.dart';
class ThemeSettings extends StatelessWidget {
const ThemeSettings({super.key});
@override
Widget build(BuildContext context) {
return Column(
children: [
const ThemeTypeListTile(),
if (context.read<DynamicColorsState>() != DynamicColorsState.unavailable) const DynamicColorsListTile(),
],
);
}
}