convert mih web app from JS to WASm

This commit is contained in:
yaso 2026-07-09 12:02:58 +02:00
parent eb213b01b6
commit f9c71b656e
17 changed files with 78 additions and 127 deletions

View file

@ -1,6 +1,7 @@
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:go_router/go_router.dart';
import 'package:mih_package_toolkit/mih_package_toolkit.dart';
import 'package:mzansi_innovation_hub/mih_config/mih_env.dart';
@ -59,6 +60,7 @@ class MihAuthenticationServices {
if (response2.statusCode == 200) {
var userCreated = jsonDecode(response2.body);
if (userCreated["status"] == "OK") {
TextInput.finishAutofillContext();
String uid = await SuperTokens.getUserId();
await MihUserServices().createUser(
email,
@ -72,6 +74,7 @@ class MihAuthenticationServices {
} else {
context.pop();
MihAlertServices().internetConnectionAlert(context);
TextInput.finishAutofillContext(shouldSave: false);
}
}
}