|
|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/pharmacyModule/BrandViewModel.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
@ -20,9 +21,9 @@ class ShopByBrandWidget extends StatelessWidget {
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
ViewAllHomeWidget(
|
|
|
|
|
TranslationBase.of(context).shopByBrands,
|
|
|
|
|
ViewAllHomeWidget(TranslationBase.of(context).shopByBrands,
|
|
|
|
|
ProductBrandsPage()),
|
|
|
|
|
if (model.state != ViewState.BusyLocal)
|
|
|
|
|
Container(
|
|
|
|
|
height: 100,
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
@ -31,6 +32,18 @@ class ShopByBrandWidget extends StatelessWidget {
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
itemCount: model.manufacturerList.length,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
else
|
|
|
|
|
Container(
|
|
|
|
|
height: 80,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: CircularProgressIndicator(
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
valueColor: AlwaysStoppedAnimation<Color>(
|
|
|
|
|
Colors.grey[500],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|