fixed ui issue

This commit is contained in:
2025-04-01 19:03:18 +05:30
parent 13f96aaf00
commit c2167f57d3
20 changed files with 1378 additions and 1482 deletions

View File

@@ -39,10 +39,15 @@ class ProductProvider extends ChangeNotifier {
bool iscroll = true;
Future<void> gettAllProduct(
BuildContext context, String id, bool status, String search) async {
Future<void> gettAllProduct(BuildContext context, String id, bool status,
String search, bool first) async {
if (isLoadingg || !hasMore) return;
print("kjldfgjklfjkdgjkhlfg");
if (first) {
print("kdjfhgkfkjdghkjkdfg");
products.clear();
notifyListeners();
}
if (id.isNotEmpty) {
products.clear();
@@ -81,6 +86,8 @@ class ProductProvider extends ChangeNotifier {
// hasMore = false;
// }
print("jdksgfkgkbfgh ${response}");
if (response.data != null && response.data!.isNotEmpty) {
if (id.isNotEmpty) {
products = response.data!;