booleanbites / houzi-support

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

Price Symbol not showing #31

Closed wassim0asaad closed 1 year ago

wassim0asaad commented 1 year ago

hi . hope you doing good i did add turkish lira currency . but the symbol not showing as you see in pics , eaven if i change to letters ,will have same problem https://freeimage.host/i/Hc6MYc7 https://freeimage.host/i/Hc6M7FS https://freeimage.host/i/Hc6MRP2 https://freeimage.host/i/Hc6MAMl https://freeimage.host/i/Hc6MAMl

AdilSoomro commented 1 year ago

hello, whats your website address?

wassim0asaad commented 1 year ago

99emlak.com

AdilSoomro commented 1 year ago

Android default font don't support the currency symbol. You can use Roboto font by Google in your app. You can follow this guide to integrate new font in Houzi: Add new font

I've attached Roboto here: Roboto.zip Download it and move the Roboto folder following folder:

Project_HOME > fonts

then open your pubspec file at Project_HOME > pubspec.yaml

Scroll to fonts section and add following lines:

fonts:
    - family: Roboto
      fonts:
        - asset: fonts/Roboto/Roboto-Black.ttf
        - asset: fonts/Roboto/Roboto-BlackItalic.ttf
        - asset: fonts/Roboto/Roboto-Bold.ttf
        - asset: fonts/Roboto/Roboto-BoldItalic.ttf
        - asset: fonts/Roboto/Roboto-Italic.ttf
        - asset: fonts/Roboto/Roboto-Light.ttf
        - asset: fonts/Roboto/Roboto-LightItalic.ttf
        - asset: fonts/Roboto/Roboto-Medium.ttf
        - asset: fonts/Roboto/Roboto-MediumItalic.ttf
        - asset: fonts/Roboto/Roboto-Regular.ttf
        - asset: fonts/Roboto/Roboto-Thin.ttf
        - asset: fonts/Roboto/Roboto-ThinItalic.ttf

KEEP IN MIND: tabs at line start matter.

Now open file at Project_HOME > lib > Hooks.dart and look for getFontHook() return "Roboto" and it should look like below:

class CustomFontsHooks {
  static getFontHook() {
    FontsHook fontsHook = (Locale locale) {
      return "Roboto";
    };

    return fontsHook;
  }
}

Uninstall the app on your simulator/device. And re-install.

wassim0asaad commented 1 year ago

Thanks alot ..will try it tomorrow .first thing i will wake up for

AdilSoomro commented 1 year ago

Hello, did it work for you? Please update.

AdilSoomro commented 1 year ago

Hello, did it work for you? Please update?

AdilSoomro commented 1 year ago

As mentioned in the previous comments, if price symbol isn't showing, it can be due to the supplied custom font not supporting that price symbol. In this case, always look for a font that supports the pricing symbol or you can provide custom font for price label. (requires customization in code atm).

Closing this issue, open new issue when required.