fix: minor bugs

This commit is contained in:
problematicconsumer
2023-09-18 14:01:44 +03:30
parent 2cd5a9fd0a
commit 921636a091
10 changed files with 157 additions and 21 deletions

View File

@@ -4,6 +4,7 @@ import 'package:hiddify/core/prefs/prefs.dart';
import 'package:hiddify/core/router/routes/routes.dart';
import 'package:hiddify/services/deep_link_service.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
part 'app_router.g.dart';
@@ -30,6 +31,9 @@ GoRouter router(RouterRef ref) {
initialLocation: initialLocation,
debugLogDiagnostics: true,
routes: $routes,
observers: [
SentryNavigatorObserver(),
],
redirect: (context, state) {
if (!introCompleted && state.uri.path != const IntroRoute().location) {
return const IntroRoute().location;