android app linking
This commit is contained in:
@@ -48,15 +48,12 @@
|
|||||||
android:value="true"
|
android:value="true"
|
||||||
/>
|
/>
|
||||||
<intent-filter android:autoVerify="true">
|
<intent-filter android:autoVerify="true">
|
||||||
<action android:name="android.intent.action.View" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
<category android:name="android.intent.category.BROWSABLE" />
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
<data
|
<data android:scheme="http" />
|
||||||
android:scheme="http"
|
<data android:scheme="https" />
|
||||||
android:host="app.mzansi-innovation-hub.co.za" />
|
<data android:host="app.mzansi-innovation-hub.co.za" />
|
||||||
<data
|
|
||||||
android:scheme="https"
|
|
||||||
android:host="app.mzansi-innovation-hub.co.za" />
|
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<!-- Don't delete the meta-data below.
|
<!-- Don't delete the meta-data below.
|
||||||
|
|||||||
@@ -73,8 +73,6 @@ class _MihCircleAvatarState extends State<MihCircleAvatar> {
|
|||||||
Visibility(
|
Visibility(
|
||||||
visible: imagePreview != null,
|
visible: imagePreview != null,
|
||||||
child: Positioned(
|
child: Positioned(
|
||||||
// bottom: 5,
|
|
||||||
right: 5,
|
|
||||||
child: CircleAvatar(
|
child: CircleAvatar(
|
||||||
radius: widget.width / 2.2,
|
radius: widget.width / 2.2,
|
||||||
backgroundColor: widget.backgroundColor,
|
backgroundColor: widget.backgroundColor,
|
||||||
@@ -84,13 +82,10 @@ class _MihCircleAvatarState extends State<MihCircleAvatar> {
|
|||||||
),
|
),
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: imagePreview != null,
|
visible: imagePreview != null,
|
||||||
child: FittedBox(
|
child: Icon(
|
||||||
fit: BoxFit.fill,
|
size: widget.width,
|
||||||
child: Icon(
|
MihIcons.mihRing,
|
||||||
size: widget.width,
|
color: widget.frameColor,
|
||||||
MihIcons.mihRing,
|
|
||||||
color: widget.frameColor,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Visibility(
|
Visibility(
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import 'package:go_router/go_router.dart';
|
|||||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/app_user.dart';
|
import 'package:mzansi_innovation_hub/mih_components/mih_objects/app_user.dart';
|
||||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/arguments.dart';
|
import 'package:mzansi_innovation_hub/mih_components/mih_objects/arguments.dart';
|
||||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/Example/package_test.dart';
|
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/Example/package_test.dart';
|
||||||
|
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_loading_circle.dart';
|
||||||
import 'package:mzansi_innovation_hub/mih_packages/about_mih/about_mih.dart';
|
import 'package:mzansi_innovation_hub/mih_packages/about_mih/about_mih.dart';
|
||||||
import 'package:mzansi_innovation_hub/mih_packages/access_review/mih_access.dart';
|
import 'package:mzansi_innovation_hub/mih_packages/access_review/mih_access.dart';
|
||||||
import 'package:mzansi_innovation_hub/mih_packages/calculator/mih_calculator.dart';
|
import 'package:mzansi_innovation_hub/mih_packages/calculator/mih_calculator.dart';
|
||||||
@@ -36,7 +37,8 @@ class MihGoRouterPaths {
|
|||||||
// Internal
|
// Internal
|
||||||
// static const String authCheck = '/';
|
// static const String authCheck = '/';
|
||||||
static const String mihAuthentication = '/mih-authentication';
|
static const String mihAuthentication = '/mih-authentication';
|
||||||
static const String mihHome = '/';
|
static const String mihLoading = '/';
|
||||||
|
static const String mihHome = '/mih-home';
|
||||||
static const String notifications = '/notifications';
|
static const String notifications = '/notifications';
|
||||||
static const String forgotPassword = '/mih-authentication/forgot-password';
|
static const String forgotPassword = '/mih-authentication/forgot-password';
|
||||||
static const String aboutMih = '/about';
|
static const String aboutMih = '/about';
|
||||||
@@ -65,7 +67,7 @@ class MihGoRouterPaths {
|
|||||||
|
|
||||||
class MihGoRouter {
|
class MihGoRouter {
|
||||||
final GoRouter mihRouter = GoRouter(
|
final GoRouter mihRouter = GoRouter(
|
||||||
initialLocation: MihGoRouterPaths.mihHome,
|
initialLocation: MihGoRouterPaths.mihLoading,
|
||||||
redirect: (BuildContext context, GoRouterState state) async {
|
redirect: (BuildContext context, GoRouterState state) async {
|
||||||
final bool isUserSignedIn = await SuperTokens.doesSessionExist();
|
final bool isUserSignedIn = await SuperTokens.doesSessionExist();
|
||||||
final unauthenticatedPaths = [
|
final unauthenticatedPaths = [
|
||||||
@@ -74,6 +76,7 @@ class MihGoRouter {
|
|||||||
MihGoRouterPaths.resetPassword,
|
MihGoRouterPaths.resetPassword,
|
||||||
MihGoRouterPaths.aboutMih,
|
MihGoRouterPaths.aboutMih,
|
||||||
MihGoRouterPaths.businessProfileView,
|
MihGoRouterPaths.businessProfileView,
|
||||||
|
MihGoRouterPaths.mihLoading,
|
||||||
];
|
];
|
||||||
KenLogger.success(
|
KenLogger.success(
|
||||||
"Redirect Check: ${state.fullPath}, isUserSignedIn: $isUserSignedIn");
|
"Redirect Check: ${state.fullPath}, isUserSignedIn: $isUserSignedIn");
|
||||||
@@ -89,6 +92,19 @@ class MihGoRouter {
|
|||||||
return null; // Stay on current route
|
return null; // Stay on current route
|
||||||
},
|
},
|
||||||
routes: [
|
routes: [
|
||||||
|
// ========================== MIH Loading ==================================
|
||||||
|
GoRoute(
|
||||||
|
name: "mihLoading",
|
||||||
|
path: MihGoRouterPaths.mihLoading,
|
||||||
|
builder: (BuildContext context, GoRouterState state) {
|
||||||
|
KenLogger.success("MihGoRouter: mihAuthentication");
|
||||||
|
return Scaffold(
|
||||||
|
body: Center(
|
||||||
|
child: CircularProgressIndicator(),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
// ========================== MIH Auth ==================================
|
// ========================== MIH Auth ==================================
|
||||||
GoRoute(
|
GoRoute(
|
||||||
name: "mihAuthentication",
|
name: "mihAuthentication",
|
||||||
|
|||||||
Reference in New Issue
Block a user