2023-01-26 09:10:23 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:lightmeter/interactors/settings_interactor.dart';
|
2023-08-13 19:14:32 +00:00
|
|
|
import 'package:lightmeter/providers/services_provider.dart';
|
2023-01-26 09:10:23 +00:00
|
|
|
import 'package:lightmeter/screens/settings/screen_settings.dart';
|
2023-06-04 11:04:04 +00:00
|
|
|
import 'package:lightmeter/utils/inherited_generics.dart';
|
2023-01-26 09:10:23 +00:00
|
|
|
|
|
|
|
class SettingsFlow extends StatelessWidget {
|
|
|
|
const SettingsFlow({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2023-06-04 11:04:04 +00:00
|
|
|
return InheritedWidgetBase<SettingsInteractor>(
|
|
|
|
data: SettingsInteractor(
|
2023-08-13 19:14:32 +00:00
|
|
|
ServicesProvider.userPreferencesServiceOf(context),
|
|
|
|
ServicesProvider.caffeineServiceOf(context),
|
|
|
|
ServicesProvider.hapticsServiceOf(context),
|
|
|
|
ServicesProvider.volumeEventsServiceOf(context),
|
2023-01-26 09:10:23 +00:00
|
|
|
),
|
|
|
|
child: const SettingsScreen(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|