|
|
|
|
@ -2,6 +2,7 @@ import 'package:diplomaticquarterapp/core/model/pharmacy/categorise_parent_model
|
|
|
|
|
import 'package:diplomaticquarterapp/core/service/AuthenticatedUserObject.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/pharmacyModule/product_detail_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/pharmacy_categorise_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/locator.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/cart-page/cart-order-page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/product-details/product-detail.dart';
|
|
|
|
|
@ -17,6 +18,7 @@ import 'package:diplomaticquarterapp/widgets/others/entity_checkbox_list.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/network_base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import 'package:rating_bar/rating_bar.dart';
|
|
|
|
|
|
|
|
|
|
import 'base/base_view.dart';
|
|
|
|
|
@ -59,6 +61,7 @@ class _SubCategorisePageState extends State<SubCategorisePage> {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
TextEditingController minField = TextEditingController();
|
|
|
|
|
TextEditingController maxField = TextEditingController();
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
return BaseView<PharmacyCategoriseViewModel>(
|
|
|
|
|
onModelReady: (model) => model.getSubCategorise(i: id),
|
|
|
|
|
builder: (BuildContext context, PharmacyCategoriseViewModel model, Widget child) => PharmacyAppScaffold(
|
|
|
|
|
@ -136,7 +139,9 @@ class _SubCategorisePageState extends State<SubCategorisePage> {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(model.subCategorise[index].name),
|
|
|
|
|
Texts(projectViewModel.isArabic ? model.subCategorise[index].namen : model.subCategorise[index].name,
|
|
|
|
|
// model.subCategorise[index].name
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
thickness: 0.6,
|
|
|
|
|
color: Colors.black12,
|
|
|
|
|
@ -208,7 +213,8 @@ class _SubCategorisePageState extends State<SubCategorisePage> {
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Texts(
|
|
|
|
|
model.subCategorise[index].name,
|
|
|
|
|
//projectViewModel.isArabic ? model.subCategorise[index].namen : model.subCategorise[index].name,
|
|
|
|
|
model.subCategorise[index].name,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
maxLines: 2,
|
|
|
|
|
@ -627,7 +633,8 @@ class _SubCategorisePageState extends State<SubCategorisePage> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
model.subProducts[index].name,
|
|
|
|
|
projectViewModel.isArabic ? model.subProducts[index].namen : model.subProducts[index].name,
|
|
|
|
|
// model.subProducts[index].name,
|
|
|
|
|
regular: true,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
|
@ -757,7 +764,8 @@ class _SubCategorisePageState extends State<SubCategorisePage> {
|
|
|
|
|
Container(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.65,
|
|
|
|
|
child: Texts(
|
|
|
|
|
model.subProducts[index].name,
|
|
|
|
|
projectViewModel.isArabic ? model.subProducts[index].namen : model.subProducts[index].name,
|
|
|
|
|
// model.subProducts[index].name,
|
|
|
|
|
regular: true,
|
|
|
|
|
fontSize: 13.2,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
|