popDialog static method
void
popDialog()
Implementation
static void popDialog(
bool needForceUpdate,
String buildVersionNo,
String buildVersion,
String buildUpdateDescription,
String buildName,
double? buildFileSize,
String downloadURL,
String packageName,
BuildContext context,
) {
showDialog(
context: context,
barrierDismissible: false,
builder: (_) {
return WillPopScope(
child: TPUpdteWidget(
needForceUpdate: needForceUpdate,
buildVersionNo: buildVersionNo,
buildVersion: buildVersion,
buildUpdateDescription: buildUpdateDescription,
buildName: buildName,
buildFileSize: buildFileSize,
url: downloadURL,
packageName: packageName,
width: MediaQuery.of(context).size.width*0.7,
startInstallApk: ()=>_close(context),
onClose: ()=>_close(context),
),
onWillPop: () async{
return false;
});
});
}