|
|
|
|
@ -170,7 +170,7 @@ class _ProviderLicensePageState extends State<ProviderLicensePage> {
|
|
|
|
|
isReview: document.status == 4,
|
|
|
|
|
allowAdButton: false,
|
|
|
|
|
pickedFiles: isLocalOrNetworkFiles(model: serviceVM, document: document),
|
|
|
|
|
onCrossPressedPrimary: chkIsLocalOrNetwork(document: document)
|
|
|
|
|
onCrossPressedPrimary: isNetworkImage(document: document)
|
|
|
|
|
? serviceVM.removeNetworkImage
|
|
|
|
|
: document.documentId == 1
|
|
|
|
|
? serviceVM.commerceRemove
|
|
|
|
|
@ -200,6 +200,7 @@ class _ProviderLicensePageState extends State<ProviderLicensePage> {
|
|
|
|
|
|
|
|
|
|
List<ImageModel> isLocalOrNetworkFiles({required ServiceVM model, required DocumentData document}) {
|
|
|
|
|
bool isNetworkImage = false;
|
|
|
|
|
|
|
|
|
|
if (!document.isLocalFile!) {
|
|
|
|
|
isNetworkImage = document.documentUrl != null && document.documentUrl!.isNotEmpty ? true : false;
|
|
|
|
|
}
|
|
|
|
|
@ -217,7 +218,6 @@ class _ProviderLicensePageState extends State<ProviderLicensePage> {
|
|
|
|
|
bool isNeedToShow({required ServiceVM model, required DocumentData document}) {
|
|
|
|
|
bool allow = false;
|
|
|
|
|
bool isNetworkImage = document.documentUrl != null && document.documentUrl!.isNotEmpty && !(document.isLocalFile ?? true);
|
|
|
|
|
log("document.documentUrl: ${document.documentUrl}");
|
|
|
|
|
if (isNetworkImage) {
|
|
|
|
|
allow = true;
|
|
|
|
|
} else {
|
|
|
|
|
@ -251,7 +251,7 @@ class _ProviderLicensePageState extends State<ProviderLicensePage> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool chkIsLocalOrNetwork({required DocumentData document}) {
|
|
|
|
|
bool isNetworkImage({required DocumentData document}) {
|
|
|
|
|
bool isNetworkImage = false;
|
|
|
|
|
if (!document.isLocalFile!) {
|
|
|
|
|
isNetworkImage = document.documentUrl != null && document.documentUrl!.isNotEmpty ? true : false;
|
|
|
|
|
|