fixed ui issue
This commit is contained in:
@@ -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!;
|
||||
|
||||
Reference in New Issue
Block a user