changes the area to kecamatan , kelurahan and tps

This commit is contained in:
kicap
2023-11-24 23:16:15 +08:00
parent 6046943a7a
commit 1b2849e6fc
33 changed files with 778 additions and 193 deletions

View File

@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:stacked/stacked.dart';
import 'package:url_launcher/url_launcher.dart';
import '../../../../app/themes/app_colors.dart';
import '../../../../app/themes/app_text.dart';
@ -124,11 +125,33 @@ class FirstPageView extends StatelessWidget {
],
),
),
GestureDetector(
onTap: () async {
final url = Uri.parse('https://www.kicap-karan.com');
if (!await launchUrl(url)) {
throw 'Could not launch $url';
}
},
child: Text(
'www.kicap-karan.com',
style: boldTextStyle.copyWith(
color: mainColor,
),
),
),
],
),
),
),
),
floatingActionButton: FloatingActionButton(
backgroundColor: warningColor,
onPressed: () {
model.gantiPassword();
},
child: const Icon(Icons.settings, color: fontColor),
),
floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
);
},
);

View File

@ -1,3 +1,4 @@
import '../../../../app/app.dialogs.dart';
import '../../../../app/app.logger.dart';
import '../../../../app/core/custom_base_view_model.dart';
import '../../../../model/my_response.model.dart';
@ -27,4 +28,17 @@ class FirstPageViewModel extends CustomBaseViewModel {
setBusy(false);
}
}
gantiPassword() async {
var res = await dialogService.showCustomDialog(
variant: DialogType.gantiPasswordDialogView,
title: 'Ganti Password',
mainButtonTitle: 'Simpan',
barrierDismissible: false,
);
if (res!.confirmed) {
snackbarService.showSnackbar(message: 'Password berhasil diubah');
}
}
}