Swipe the Native loading « arguments

merge-update-with-lab-changes
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){ private fun showLoading(methodCall: MethodCall, result: MethodChannel.Result){
(methodCall.arguments as ArrayList<*>).let { (methodCall.arguments as ArrayList<*>).let {
require(it.size > 1 && (it[0] is Boolean) && (it[1] is String),lazyMessage = { 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 message = it[0] as String
val show = it[1] as Boolean
HMGUtils.showLoading(mainActivity,show,message) HMGUtils.showLoading(mainActivity,show,message)
} }
} }

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

Loading…
Cancel
Save