booleanbites / houzi-support

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

Click on Manage profile throws this error #28

Closed yendiscart closed 1 year ago

yendiscart commented 1 year ago
======== 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:2694:9)
#1      _HttpClient.openUrl (dart:_http/http_impl.dart:2591: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)
====================================================================================================
AdilSoomro commented 1 year ago

Hello, do you see any error on screen? like red / grey screen?

yendiscart commented 1 year ago

On debug I see red

AdilSoomro commented 1 year ago

Hello, can we know your website address?

yendiscart commented 1 year ago

https://www.99emlak.com/

AdilSoomro commented 1 year ago

hello, I just checked with new account that I just created. It shows fine. Can you send your problematic account credentials to our email: houziapp@gmail.com

yendiscart commented 1 year ago

Sent

AdilSoomro commented 1 year ago

In the followup, we discoverred there's an issue in manage profile when user signs up with phone. So their email isn't available. Here's how to fix this issue, open file:

PROJECT_HOME/packages/houzi_package/lib/pages/home_screen_drawer_menu_pages/user_related/manage_profile.dart

and add a null check in build() method line # 144 (or around) , like below

Divider(thickness: 0,color: AppThemePreferences.homeScreenDrawerTextColorDark,),
genericTextWidget(
  userEmail ?? "",     //     <----- added a null check here.
  style: AppThemePreferences().appTheme.heading01TextStyle,
),

It should fix the issue of crashing when signing up with phone.