booleanbites / houzi-support

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

How to show city and state on property list item #146

Closed samac01 closed 6 months ago

samac01 commented 7 months ago

Hello Please on property location I need call, city and aria like theme on web site on app call address but I'm add only city and aria and map location please any help Screenshot_20240215_163327_Chrome.png

Screenshot_20240215_163405.png

AdilSoomro commented 7 months ago

Hi, open the following file in app source code:

PROJECT_HOME/packages/houzi_package/lib/widgets/article_box_widgets/article_box_design.dart

Find String _address around line 40, and there you can change the address line to whatever you want. You can get the country, state, city and area as follow:

String _country = article!.address!.country;
String _state = article!.address!.state;
String _city = article!.address!.city;
String _area = article!.address!.area;
samac01 commented 7 months ago

20240215_210303.jpg

Not working Please i need City,Area like this

AdilSoomro commented 7 months ago

Why you removed _address variable.

String _address = article!.address!.city +","+ article!.address!.area;

_adress is variable used in later lines, and it will generate a compiler error if you remove this.

samac01 commented 7 months ago

I'm SOS sorry Mr Adil for last your time but not working 20240215_222748.jpg

20240215_222737.jpg

AdilSoomro commented 7 months ago

What is not working? Is there any error you getting? Is the address not showing?

It is really hard to guess something front the screenshot.

samac01 commented 7 months ago

Yes no thing showing

Screenshot_20240215_231300.png

AdilSoomro commented 7 months ago

What is your website address?

samac01 commented 7 months ago

Https://ajmancity.ae

Hassan6197 commented 7 months ago

Hello @samac01, Please email me imhassan6197@gmail.com

samac01 commented 7 months ago

I send him thanks you but still Maby have some problems in my web

AdilSoomro commented 7 months ago

Hi, the app relies on address string by default.

Showing city and area requires an additional query for each property. Which means if you are fetching 20 listings per search, it'll add 20 queries to the process. Which can be tiny little bit slower, because with Wordpress api, each listing will need a separate query to fetch area and city separately. I would suggest to add address to each of your property.

samac01 commented 7 months ago

OK now I want try with aria no problem because I don't have address, when user add new listing add aria and city only