Closed zaidshakhshir closed 10 months 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.
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
====================================================================================================
Please share property link that has this issue.
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!),
),
);
}
i tried to go to search screen in app but found the following in console :-
also when clicking on location in the property details nothing changes