Remove urlstrategy

This commit is contained in:
Moe Poi ~ 2022-05-21 17:09:34 +07:00
parent 1ec4f6e560
commit 05988a7627
4 changed files with 0 additions and 11 deletions

View file

@ -7,12 +7,10 @@ import 'package:nekoya_flutter/screens/login.dart';
import 'package:nekoya_flutter/screens/register.dart';
import 'package:nekoya_flutter/screens/payment.dart';
import 'package:nekoya_flutter/components/menu.dart';
import 'package:nekoya_flutter/utils/url_strategy.dart';
import 'package:nekoya_flutter/utils/navigation_auth.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
usePathUrlStrategy();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]).then((_) {
runApp(const Nekoya());
});

View file

@ -1 +0,0 @@
export 'url_strategy_noop.dart' if (dart.library.html) 'url_strategy_web.dart';

View file

@ -1,3 +0,0 @@
void usePathUrlStrategy() {
// noop
}

View file

@ -1,5 +0,0 @@
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
void usePathUrlStrategy() {
setUrlStrategy(PathUrlStrategy());
}