|
|
|
@ -547,7 +547,8 @@ class _ParentCategorisePageState extends State<ParentCategorisePage> {
|
|
|
|
thickness: 1.0,
|
|
|
|
thickness: 1.0,
|
|
|
|
color: Colors.grey.shade400,
|
|
|
|
color: Colors.grey.shade400,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
styleOne == true
|
|
|
|
model.parentProducts.isNotEmpty
|
|
|
|
|
|
|
|
? styleOne == true
|
|
|
|
? Container(
|
|
|
|
? Container(
|
|
|
|
height: model.parentProducts.length * MediaQuery.of(context).size.height * 0.15,
|
|
|
|
height: model.parentProducts.length * MediaQuery.of(context).size.height * 0.15,
|
|
|
|
child: GridView.builder(
|
|
|
|
child: GridView.builder(
|
|
|
|
@ -643,7 +644,8 @@ class _ParentCategorisePageState extends State<ParentCategorisePage> {
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Color(0xffb23838),
|
|
|
|
color: Color(0xffb23838),
|
|
|
|
borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.only(topLeft: Radius.circular(6)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Texts(
|
|
|
|
child: Texts(
|
|
|
|
model.parentProducts[index].rxMessage != null
|
|
|
|
model.parentProducts[index].rxMessage != null
|
|
|
|
@ -700,7 +702,8 @@ class _ParentCategorisePageState extends State<ParentCategorisePage> {
|
|
|
|
StarRating(
|
|
|
|
StarRating(
|
|
|
|
totalAverage:
|
|
|
|
totalAverage:
|
|
|
|
model.parentProducts[index].approvedRatingSum > 0
|
|
|
|
model.parentProducts[index].approvedRatingSum > 0
|
|
|
|
? (model.parentProducts[index].approvedRatingSum
|
|
|
|
? (model.parentProducts[index]
|
|
|
|
|
|
|
|
.approvedRatingSum
|
|
|
|
.toDouble() /
|
|
|
|
.toDouble() /
|
|
|
|
model.parentProducts[index]
|
|
|
|
model.parentProducts[index]
|
|
|
|
.approvedRatingSum
|
|
|
|
.approvedRatingSum
|
|
|
|
@ -780,7 +783,8 @@ class _ParentCategorisePageState extends State<ParentCategorisePage> {
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Color(0xffb23838),
|
|
|
|
color: Color(0xffb23838),
|
|
|
|
borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.only(topLeft: Radius.circular(6)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Texts(
|
|
|
|
child: Texts(
|
|
|
|
model.parentProducts[index].rxMessage != null
|
|
|
|
model.parentProducts[index].rxMessage != null
|
|
|
|
@ -836,7 +840,8 @@ class _ParentCategorisePageState extends State<ParentCategorisePage> {
|
|
|
|
model.parentProducts[index].approvedRatingSum > 0
|
|
|
|
model.parentProducts[index].approvedRatingSum > 0
|
|
|
|
? (model.parentProducts[index].approvedRatingSum
|
|
|
|
? (model.parentProducts[index].approvedRatingSum
|
|
|
|
.toDouble() /
|
|
|
|
.toDouble() /
|
|
|
|
model.parentProducts[index].approvedRatingSum
|
|
|
|
model.parentProducts[index]
|
|
|
|
|
|
|
|
.approvedRatingSum
|
|
|
|
.toDouble())
|
|
|
|
.toDouble())
|
|
|
|
.toDouble()
|
|
|
|
.toDouble()
|
|
|
|
: 0,
|
|
|
|
: 0,
|
|
|
|
@ -865,6 +870,34 @@ class _ParentCategorisePageState extends State<ParentCategorisePage> {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
: Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(12.0),
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
|
|
|
'assets/images/new-design/empty_box.png',
|
|
|
|
|
|
|
|
width: 100,
|
|
|
|
|
|
|
|
height: 100,
|
|
|
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
'There is no data',
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 30),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|