|
|
|
|
@ -30,7 +30,9 @@ class _PharmacyCategorisePageState extends State<PharmacyCategorisePage> {
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
return BaseView<PharmacyCategoriseViewModel>(
|
|
|
|
|
onModelReady: (model) => model.getCategorise(),
|
|
|
|
|
builder: (BuildContext context, PharmacyCategoriseViewModel model, Widget child) => AppScaffold(
|
|
|
|
|
builder: (BuildContext context, PharmacyCategoriseViewModel model,
|
|
|
|
|
Widget child) =>
|
|
|
|
|
AppScaffold(
|
|
|
|
|
isShowDecPage: false,
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
body: Column(
|
|
|
|
|
@ -58,7 +60,9 @@ class _PharmacyCategorisePageState extends State<PharmacyCategorisePage> {
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
child: Texts(
|
|
|
|
|
projectViewModel.isArabic ? model.categorise[index].namen : model.categorise[index].name,
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? model.categorise[index].namen
|
|
|
|
|
: model.categorise[index].name,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -87,7 +91,10 @@ class _PharmacyCategorisePageState extends State<PharmacyCategorisePage> {
|
|
|
|
|
height: 140,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Divider(height: 2.0, thickness: 1.0, color: Colors.black12.withOpacity(0.14)),
|
|
|
|
|
Divider(
|
|
|
|
|
height: 2.0,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.black12.withOpacity(0.14)),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
),
|
|
|
|
|
@ -103,12 +110,16 @@ class _PharmacyCategorisePageState extends State<PharmacyCategorisePage> {
|
|
|
|
|
width: 55.0,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(5.0),
|
|
|
|
|
color: Colors.green.shade300.withOpacity(0.34),
|
|
|
|
|
color:
|
|
|
|
|
Colors.green.shade300.withOpacity(0.34),
|
|
|
|
|
),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
child: Texts(
|
|
|
|
|
projectViewModel.isArabic ? 'الاكثر مبيعا' : 'Best Sellers',
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? 'الاكثر مبيعا'
|
|
|
|
|
: 'Best Sellers',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -123,13 +134,16 @@ class _PharmacyCategorisePageState extends State<PharmacyCategorisePage> {
|
|
|
|
|
height: 50.0,
|
|
|
|
|
width: 55.0,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.orangeAccent.shade200.withOpacity(0.34),
|
|
|
|
|
color: Colors.orangeAccent.shade200
|
|
|
|
|
.withOpacity(0.34),
|
|
|
|
|
borderRadius: BorderRadius.circular(5.0),
|
|
|
|
|
),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
child: Texts(
|
|
|
|
|
projectViewModel.isArabic ? 'الاكثر مشاهدة' : 'Most Viewed',
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? 'الاكثر مشاهدة'
|
|
|
|
|
: 'Most Viewed',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -153,7 +167,9 @@ class _PharmacyCategorisePageState extends State<PharmacyCategorisePage> {
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
child: Texts(
|
|
|
|
|
projectViewModel.isArabic ? 'منتجات جديدة' : 'New Products',
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? 'منتجات جديدة'
|
|
|
|
|
: 'New Products',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -171,13 +187,17 @@ class _PharmacyCategorisePageState extends State<PharmacyCategorisePage> {
|
|
|
|
|
height: 50.0,
|
|
|
|
|
width: 55.0,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.purple.shade200.withOpacity(0.34),
|
|
|
|
|
color:
|
|
|
|
|
Colors.purple.shade200.withOpacity(0.34),
|
|
|
|
|
borderRadius: BorderRadius.circular(5.0),
|
|
|
|
|
),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
child: Texts(
|
|
|
|
|
projectViewModel.isArabic ? 'شوهد مؤخرا' : 'Recently Viewed',
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? 'شوهد مؤخرا'
|
|
|
|
|
: 'Recently Viewed',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|