add new url stragety with flutter web plugin to handle external link navigation
This commit is contained in:
parent
f4700147bb
commit
e2ab5cd59a
2 changed files with 4 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ import 'package:flutter_native_splash/flutter_native_splash.dart';
|
|||
import 'package:patient_manager/env/env.dart';
|
||||
import 'package:patient_manager/main.dart';
|
||||
import 'package:supertokens_flutter/supertokens.dart';
|
||||
import 'package:url_strategy/url_strategy.dart';
|
||||
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
|
||||
|
|
@ -13,7 +13,7 @@ void main() async {
|
|||
apiDomain: AppEnviroment.baseApiUrl,
|
||||
apiBasePath: "/auth",
|
||||
);
|
||||
setPathUrlStrategy();
|
||||
setUrlStrategy(PathUrlStrategy());
|
||||
FlutterNativeSplash.remove();
|
||||
runApp(const MzanziInnovationHub());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue