Fixed release notes dialog logic

This commit is contained in:
Vadim 2024-05-22 22:50:47 +02:00
parent 881778b313
commit d4deae57ef

View file

@ -7,6 +7,7 @@ import 'package:lightmeter/platform_config.dart';
import 'package:lightmeter/providers/user_preferences_provider.dart';
import 'package:lightmeter/screens/metering/flow_metering.dart';
import 'package:lightmeter/screens/settings/flow_settings.dart';
import 'package:lightmeter/screens/shared/release_notes_dialog/flow_dialog_release_notes.dart';
import 'package:lightmeter/screens/timer/flow_timer.dart';
class Application extends StatelessWidget {
@ -41,7 +42,7 @@ class Application extends StatelessWidget {
),
initialRoute: "metering",
routes: {
"metering": (_) => const MeteringFlow(),
"metering": (_) => const ReleaseNotesFlow(child: MeteringFlow()),
"settings": (_) => const SettingsFlow(),
"timer": (context) => TimerFlow(args: ModalRoute.of(context)!.settings.arguments! as TimerFlowArgs),
},