fixed web link
This commit is contained in:
+3
-5
@@ -4,11 +4,11 @@ import 'dart:ui';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:provider/single_child_widget.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:tm_app/core/config/dependencies.dart';
|
||||
import 'package:tm_app/core/config/web_url_strategy.dart';
|
||||
import 'package:tm_app/core/services/cache_init.dart';
|
||||
import 'package:tm_app/core/theme/theme_provider.dart';
|
||||
|
||||
@@ -22,10 +22,6 @@ void main() async {
|
||||
// Initialize SVG cache
|
||||
await CacheInit.init();
|
||||
|
||||
if (kIsWeb) {
|
||||
setUrlStrategy(PathUrlStrategy());
|
||||
}
|
||||
|
||||
await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
||||
|
||||
// Initialize the logger
|
||||
@@ -40,6 +36,8 @@ void main() async {
|
||||
Provider(create: (context) => prefs),
|
||||
...providersRemote,
|
||||
];
|
||||
// Configure web URL strategy if running on web
|
||||
configureWebUrlStrategy();
|
||||
|
||||
runApp(MultiProvider(providers: providers, child: const MyApp()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user