mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-10-18 22:30:39 +00:00
27 lines
967 B
Dart
27 lines
967 B
Dart
![]() |
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||
|
import 'package:lightmeter/data/models/dynamic_colors_state.dart';
|
||
|
import 'package:lightmeter/generated/l10n.dart';
|
||
|
import 'package:lightmeter/screens/settings/components/shared/settings_section/widget_settings_section.dart';
|
||
|
|
||
|
import 'components/dynamic_color/widget_list_tile_dynamic_color.dart';
|
||
|
import 'components/primary_color/widget_list_tile_primary_color.dart';
|
||
|
import 'components/theme_type/widget_list_tile_theme_type.dart';
|
||
|
|
||
|
class ThemeSettingsSection extends StatelessWidget {
|
||
|
const ThemeSettingsSection({super.key});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return SettingsSection(
|
||
|
title: S.of(context).theme,
|
||
|
children: [
|
||
|
const ThemeTypeListTile(),
|
||
|
const PrimaryColorListTile(),
|
||
|
if (context.read<DynamicColorState>() != DynamicColorState.unavailable)
|
||
|
const DynamicColorListTile(),
|
||
|
],
|
||
|
);
|
||
|
}
|
||
|
}
|