|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/pharmacyModule/BestSellerViewModel.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/pharmacyModule/BestSellerViewModel.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
@ -26,6 +27,7 @@ class BestSellerWidget extends StatelessWidget {
|
|
|
|
id: "",
|
|
|
|
id: "",
|
|
|
|
productType: 20,
|
|
|
|
productType: 20,
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
|
|
|
|
if (model.state != ViewState.BusyLocal)
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
height: MediaQuery.of(context).size.height / 4 + 20,
|
|
|
|
height: MediaQuery.of(context).size.height / 4 + 20,
|
|
|
|
child: ListView.builder(
|
|
|
|
child: ListView.builder(
|
|
|
|
@ -34,6 +36,17 @@ class BestSellerWidget extends StatelessWidget {
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
itemCount: model.bestSellerProduct.length,
|
|
|
|
itemCount: model.bestSellerProduct.length,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
) else
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
height: 80,
|
|
|
|
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: CircularProgressIndicator(
|
|
|
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
|
|
|
valueColor: AlwaysStoppedAnimation<Color>(
|
|
|
|
|
|
|
|
Colors.grey[500],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|