initial commit to gitea
This commit is contained in:
@@ -10,6 +10,7 @@ import 'package:flutter_wisetronic/pages/buy_service.dart';
|
||||
import 'package:geolocator/geolocator.dart' as geolocator;
|
||||
import 'package:url_strategy/url_strategy.dart';
|
||||
import 'models/located_address.dart';
|
||||
import 'pages/create_online_store_1.dart';
|
||||
import 'pages/me.dart';
|
||||
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||||
import 'package:splashscreen/splashscreen.dart';
|
||||
@@ -28,6 +29,7 @@ import 'store/store.dart';
|
||||
import 'utils/configure_nonweb.dart' if (dart.library.html) 'utils/configure_web.dart';
|
||||
import 'utils/http_util.dart';
|
||||
import 'utils/util_io.dart' if (dart.library.html) 'utils/util_web.dart';
|
||||
import 'utils/utils.dart';
|
||||
|
||||
void main() {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
@@ -42,6 +44,7 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
MyApp() {
|
||||
Routes.configure();
|
||||
Utils().init();
|
||||
Util().init();
|
||||
// getCurrentPosition();
|
||||
}
|
||||
@@ -142,16 +145,42 @@ class MyApp extends StatelessWidget {
|
||||
builder: (BuildContext context) => Me()
|
||||
);
|
||||
}
|
||||
if (pathElements[1] == 'service-policy') {
|
||||
return MaterialPageRoute(
|
||||
builder: (BuildContext context) =>
|
||||
PlainPage(
|
||||
'service-policy',
|
||||
businessId: 310,
|
||||
),
|
||||
);
|
||||
}
|
||||
if (pathElements[1] == 'privacy-policy') {
|
||||
return MaterialPageRoute(
|
||||
builder: (BuildContext context) =>
|
||||
PlainPage(
|
||||
'privacy-policy',
|
||||
// businessId: Constants.BUSINESS_ID,
|
||||
businessId: 310,
|
||||
),
|
||||
);
|
||||
}
|
||||
if (pathElements[1] == 'return-policy') {
|
||||
return MaterialPageRoute(
|
||||
builder: (BuildContext context) =>
|
||||
PlainPage(
|
||||
'return-policy',
|
||||
businessId: 310,
|
||||
),
|
||||
);
|
||||
}
|
||||
if (pathElements[1] == 'end-user-license-agreement') {
|
||||
return MaterialPageRoute(
|
||||
builder: (BuildContext context) =>
|
||||
PlainPage(
|
||||
'end-user-license-agreement',
|
||||
businessId: 310,
|
||||
),
|
||||
);
|
||||
}
|
||||
if (pathElements[1] == 'renew-minioffice') {
|
||||
return MaterialPageRoute(builder: (BuildContext context) =>
|
||||
RenewMiniOffice(int.parse(pathElements[2]))
|
||||
@@ -162,6 +191,11 @@ class MyApp extends StatelessWidget {
|
||||
BuyService(int.parse(pathElements[2]), pathElements[3])
|
||||
);
|
||||
}
|
||||
if (pathElements[1] == 'contact-stores') {
|
||||
return MaterialPageRoute(builder: (BuildContext context) =>
|
||||
CreateOnlineStore1()
|
||||
);
|
||||
}
|
||||
return MaterialPageRoute(
|
||||
builder: (BuildContext context) =>
|
||||
Home(title: Constants.APP_TITLE,),
|
||||
|
||||
Reference in New Issue
Block a user