import 'package:flutter/material.dart'; import '../../../core/theme/theme_controller.dart'; class SettingsView extends StatelessWidget { const SettingsView({super.key, required this.themeController}); final ThemeController themeController; @override Widget build(BuildContext context) { final theme = Theme.of(context); return ListenableBuilder( listenable: themeController, builder: (context, _) { return ListView( padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0), children: [ Text( 'Appearance', style: theme.textTheme.titleSmall?.copyWith( color: theme.colorScheme.primary, fontWeight: FontWeight.bold, ), ), const SizedBox(height: 8), Card( child: RadioGroup( groupValue: themeController.themeMode, onChanged: (mode) { if (mode != null) themeController.setThemeMode(mode); }, child: const Column( children: [ RadioListTile( title: Text('System Default'), subtitle: Text('Follow operating system theme'), secondary: Icon(Icons.brightness_auto_outlined), value: ThemeMode.system, ), Divider(height: 1), RadioListTile( title: Text('Light Mode'), secondary: Icon(Icons.light_mode_outlined), value: ThemeMode.light, ), Divider(height: 1), RadioListTile( title: Text('Dark Mode'), secondary: Icon(Icons.dark_mode_outlined), value: ThemeMode.dark, ), ], ), ), ), const SizedBox(height: 24), Text( 'About App', style: theme.textTheme.titleSmall?.copyWith( color: theme.colorScheme.primary, fontWeight: FontWeight.bold, ), ), const SizedBox(height: 8), const Card( child: Column( children: [ ListTile( leading: Icon(Icons.phone_android_outlined), title: Text('Supported Platforms'), subtitle: Text('Android & iOS (iPhone/iPad)'), ), Divider(height: 1), ListTile( leading: Icon(Icons.layers_outlined), title: Text('Architecture'), subtitle: Text('Clean Architecture (Data, Domain, Presentation)'), ), Divider(height: 1), ListTile( leading: Icon(Icons.palette_outlined), title: Text('Design System'), subtitle: Text('Material Design 3 with Adaptive Layouts'), ), ], ), ), ], ); }, ); } }