feat : sale in the province

This commit is contained in:
MrM
2025-06-27 18:08:53 +03:30
parent 701e8e0fbe
commit 751d48c02e
13 changed files with 1542 additions and 1896 deletions

View File

@@ -28,9 +28,8 @@ Map<String, dynamic> buildQueryParams({
params['search'] = search;
}
if (value != null) {
params['value'] = value;
}
params['value'] = value ?? '';
if (page != null) {
params['page'] = page;

View File

@@ -1,11 +1,13 @@
import 'package:intl/intl.dart';
extension XString on String {
String get separatedByComma {
String get separatedByComma {
final formatter = NumberFormat('#,###');
return formatter.format(this);
final number = num.tryParse(this);
return number != null ? formatter.format(number) : this;
}
get clearComma{
get clearComma {
return replaceAll(RegExp(r'\D'), '');
}
}