|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/pharmacy_categorise_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/pharmacy_module_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/product_detail.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
@ -7,7 +8,8 @@ import 'package:diplomaticquarterapp/widgets/others/app_scaffold_pharmacy_widget
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/network_base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
|
import 'package:flutter/src/widgets/image.dart' as flutterImage;
|
|
|
|
|
import 'base/base_view.dart';
|
|
|
|
|
|
|
|
|
|
class FinalProductsPage extends StatefulWidget {
|
|
|
|
@ -124,7 +126,8 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
|
|
|
|
|
),
|
|
|
|
|
styleOne == true
|
|
|
|
|
? Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child:model.finalProducts.length > 0
|
|
|
|
|
? Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 3.90,
|
|
|
|
|
child: GridView.builder(
|
|
|
|
|
gridDelegate:
|
|
|
|
@ -355,10 +358,33 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
|
|
|
|
|
));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Align(
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/pharmacy/empty_box.png',
|
|
|
|
|
width: 100,
|
|
|
|
|
height: 100,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).noResult,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 20.0,
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),)
|
|
|
|
|
: Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: model.finalProducts.length > 0
|
|
|
|
|
? Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 5.0,
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
itemCount: model.finalProducts.length,
|
|
|
|
@ -546,6 +572,29 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Align(
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/pharmacy/empty_box.png',
|
|
|
|
|
width: 100,
|
|
|
|
|
height: 100,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).noResult,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 20.0,
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|