Swipe the Native loading « arguments

geofencing_wifi
Zohaib Kambrani 5 years ago
parent 8e554970f3
commit 8fcf1b6708

@ -59,11 +59,11 @@ class PlatformBridge(binaryMessenger: BinaryMessenger, flutterMainActivity: Flut
private fun showLoading(methodCall: MethodCall, result: MethodChannel.Result){
(methodCall.arguments as ArrayList<*>).let {
require(it.size > 1 && (it[0] is Boolean) && (it[1] is String),lazyMessage = {
"Missing or invalid arguments (Must have two argument 'Boolean at 0' and 'String at 1'"
"Missing or invalid arguments (Must have two argument 'String at 1' and 'Boolean at 1'"
})
val show = it[0] as Boolean
val message = it[0] as String
val show = it[1] as Boolean
HMGUtils.showLoading(mainActivity,show,message)
}
}

@ -469,7 +469,8 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
if (projectViewModel.user == null) {
projectViewModel
.platformBridge()
.connectHMGGuestWifi("1231755");
.connectHMGGuestWifi(
"1231755" /*PatientID*/);
} else {
Navigator.push(context,
FadePage(page: DoctorHomePage()));

Loading…
Cancel
Save