Commit d3732e2e authored by Izol's avatar Izol

fixing home page

parent f1a5d7af
......@@ -24,7 +24,7 @@ import 'package:self_service_3/reader/reader_flutter.dart';
import 'package:self_service_3/services/api_helpert.dart';
import 'package:self_service_3/shared/theme.dart';
import 'package:self_service_3/ui/utils/dialog_helper.dart';
import 'package:self_service_3/ui/widgets/utils/dialog_helper.dart';
import 'package:self_service_3/ui/widgets/buttons.dart';
import 'package:self_service_3/ui/widgets/home_services.dart';
......@@ -469,13 +469,16 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
var infoMap = jsonDecode(info);
switch (infoMap["cardType"]) {
case 1:
cardType = "Baru";
// Perubahan cardType 1 baru menjadi
cardType = "Kartu Belum Aktif";
break;
case 2:
cardType = "Belum Aktif";
// Perubahan cardType 2 Belum aktif menjadi
cardType = "Kartu Aktif";
break;
case 3:
cardType = "Aktif";
// Perubahan cardType 3 aktif menjadi
cardType = "Binding Customer";
break;
case 4:
cardType = "On Customer";
......@@ -549,13 +552,16 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
var infoMap = jsonDecode(info);
switch (infoMap["cardType"]) {
case 1:
cardType = "Baru";
// Perubahan cardType 1 baru menjadi
cardType = "Kartu Belum Aktif";
break;
case 2:
cardType = "Belum Aktif";
// Perubahan cardType 2 Belum aktif menjadi
cardType = "Kartu Aktif";
break;
case 3:
cardType = "Aktif";
// Perubahan cardType 3 aktif menjadi
cardType = "Binding Customer";
break;
case 4:
cardType = "On Customer";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment