You can set your own price format method in app. There are two price formatter using in Houzi.
- If you want to format price in Property detail page or any other place, use this method. If you want to use Houzi pre define formatter than return null. Go to
Project_HOME > lib > hooks_v2.dart
. Look for thegetPriceFormatterHook()
method. For e.g:
static getPriceFormatterHook() {
PriceFormatterHook priceFormatterHook = (String propertyPrice, String firstPrice) {
// Define your own method here and return the formatted string
return null;
};
return priceFormatterHook;
}
- If you want to format price on Property Card use this method. If you want to use Houzi pre define formatter than return null. Go to
Project_HOME > lib > hooks_v2.dart
. Look for thegetCompactPriceFormatterHook()
method. For e.g:
static getCompactPriceFormatterHook() {
CompactPriceFormatterHook compactPriceFormatterHook = (String inputPrice) {
// Define your own method here and return the formatted string
return null;
};
return compactPriceFormatterHook;
}