Skip to content

Commit

Permalink
fix loop loading when scanning (#2713)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshAman999 authored Aug 4, 2022
1 parent bff9e92 commit 6b5747a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
import 'package:openfoodfacts/model/Product.dart';
import 'package:provider/provider.dart';
import 'package:smooth_app/cards/product_cards/smooth_product_card_loading.dart';
import 'package:smooth_app/database/dao_product.dart';
import 'package:smooth_app/database/local_database.dart';
import 'package:smooth_app/pages/scan/scan_product_card.dart';
Expand All @@ -21,9 +20,6 @@ class ScanProductCardLoader extends StatelessWidget {
final BuildContext context,
final AsyncSnapshot<Product?> snapshot,
) {
if (snapshot.connectionState != ConnectionState.done) {
return SmoothProductCardLoading(barcode: barcode);
}
if (snapshot.data != null) {
return ScanProductCard(snapshot.data!);
}
Expand Down

0 comments on commit 6b5747a

Please sign in to comment.