2023-01-26 09:10:23 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:lightmeter/interactors/settings_interactor.dart';
|
2023-08-13 13:27:43 +00:00
|
|
|
import 'package:lightmeter/providers/service_providers.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 13:27:43 +00:00
|
|
|
ServiceProviders.userPreferencesServiceOf(context),
|
|
|
|
ServiceProviders.caffeineServiceOf(context),
|
|
|
|
ServiceProviders.hapticsServiceOf(context),
|
|
|
|
ServiceProviders.volumeEventsServiceOf(context),
|
2023-01-26 09:10:23 +00:00
|
|
|
),
|
|
|
|
child: const SettingsScreen(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|