booleanbites / houzi-support

Support forum repo for issues & bugs reported for Houzi Flutter App.
4 stars 0 forks source link

Location is not opening & invalid host in resources #57

Closed zaidshakhshir closed 10 months ago

zaidshakhshir commented 1 year ago

i tried to go to search screen in app but found the following in console :-

======== Exception caught by image resource service ================================================
The following ArgumentError was thrown resolving an image codec:
Invalid argument(s): No host specified in URI

When the exception was thrown, this was the stack: 
#0      _HttpClient._openUrl (dart:_http/http_impl.dart:2733:9)
#1      _HttpClient.openUrl (dart:_http/http_impl.dart:2604:7)
#2      IOClient.send (package:http/src/io_client.dart:57:38)
#3      HttpFileService.get (package:flutter_cache_manager/src/web/file_service.dart:35:44)
#4      WebHelper._download (package:flutter_cache_manager/src/web/web_helper.dart:121:24)
#5      WebHelper._updateFile (package:flutter_cache_manager/src/web/web_helper.dart:103:28)
<asynchronous suspension>
#6      WebHelper._downloadOrAddToQueue (package:flutter_cache_manager/src/web/web_helper.dart:71:7)
<asynchronous suspension>
Image provider: CachedNetworkImageProvider("", scale: 1.0) 
 Image key: CachedNetworkImageProvider("", scale: 1.0): CachedNetworkImageProvider("", scale: 1.0)
====================================================================================================

also when clicking on location in the property details nothing changes

AdilSoomro commented 1 year ago

You can simply ignore this warning. It is related to an in image not found.

Regarding location, please follow documentation and integrate firebase and google-cloud.

Important: please keep in mind, places api won't work if you don't add billing to your google-cloud project.

zaidshakhshir commented 1 year ago

i checked those documents but got the following error

======== Exception caught by gesture ===============================================================
The following RangeError was thrown while handling a gesture:
RangeError (index): Invalid value: Valid value range is empty: 0

When the exception was thrown, this was the stack: 
#0      List.[] (dart:core-patch/growable_array.dart:264:36)
#1      _PropertyDetailPageStaticMapAddressState.navigateToFullScreenMapViewArticle (package:houzi_package/pages/property_details_related_pages/property_detail_page_widgets/pd_static_map_address.dart:81:43)
#2      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:253:24)
#3      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:627:11)
#4      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:306:5)
#5      BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:276:7)
#6      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:163:27)
#7      GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:464:20)
#8      GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:440:22)
#9      RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:336:11)
#10     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:395:7)
#11     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:357:5)
#12     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:314:7)
#13     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:295:7)
#14     _invoke1 (dart:ui/hooks.dart:164:13)
#15     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:361:7)
#16     _dispatchPointerDataPacket (dart:ui/hooks.dart:91:31)
Handler: "onTap"
Recognizer: TapGestureRecognizer#35059
  debugOwner: GestureDetector
  state: ready
  won arena
  finalPosition: Offset(259.0, 657.9)
  finalLocalPosition: Offset(239.0, 59.2)
  button: 1
  sent tap down
====================================================================================================
AdilSoomro commented 1 year ago

Please share property link that has this issue.

Hassan6197 commented 1 year ago

Hello @zaidshakhshir, Go to packages/houzi_package/lib/pages/property_details_related_pages/property_detail_page_widgets/pd_static_map_address.dart and navigateToFullScreenMapViewArticle() method and replace the method with the following code:

navigateToFullScreenMapViewArticle() {
    if (widget.imageUrlsList.isNotEmpty) {
      _article!.image = widget.imageUrlsList[0];
    }
    Navigator.push(
      context,
      MaterialPageRoute(
        builder: (context) => FullScreenMapViewArticle(_article!),
      ),
    );
  }