use new home logic
This commit is contained in:
parent
68073ed062
commit
89724bb952
20 changed files with 274 additions and 156 deletions
|
|
@ -3,7 +3,6 @@ import 'dart:convert';
|
|||
import 'package:go_router/go_router.dart';
|
||||
import 'package:mzansi_innovation_hub/main.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_package_components/mih_button.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_package_alert.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_error_message.dart';
|
||||
|
|
@ -52,10 +51,7 @@ class MihUserServices {
|
|||
if (response.statusCode == 201) {
|
||||
context.goNamed(
|
||||
'mihHome',
|
||||
extra: AuthArguments(
|
||||
true,
|
||||
true,
|
||||
),
|
||||
extra: true,
|
||||
);
|
||||
} else {
|
||||
internetConnectionPopUp(context);
|
||||
|
|
@ -262,10 +258,7 @@ class MihUserServices {
|
|||
onPressed: () {
|
||||
context.goNamed(
|
||||
'mihHome',
|
||||
extra: AuthArguments(
|
||||
true,
|
||||
true,
|
||||
),
|
||||
extra: true,
|
||||
);
|
||||
},
|
||||
buttonColor: MihColors.getGreenColor(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue