|
|
|
|
@ -62,11 +62,12 @@ class _MealPlanPageState extends State<MealPlanPage> {
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
decoration: containerRadius(Colors.white, 12),
|
|
|
|
|
decoration: containerRadius(getMealsScheduleResponseModelList[0].isShow ? Colors.white : Colors.grey[300], 12),
|
|
|
|
|
child: AppExpandableNotifier(
|
|
|
|
|
title: "Breakfast TAT: " + DateUtil.convertTime(getMealsScheduleResponseModelList[0].tATTime),
|
|
|
|
|
isTitleSingleLine: false,
|
|
|
|
|
widgetColor: Colors.transparent,
|
|
|
|
|
isDisabled: !getMealsScheduleResponseModelList[0].isShow,
|
|
|
|
|
bodyWidget: Column(
|
|
|
|
|
children: [
|
|
|
|
|
getDivider(),
|
|
|
|
|
@ -152,34 +153,182 @@ class _MealPlanPageState extends State<MealPlanPage> {
|
|
|
|
|
),
|
|
|
|
|
mHeight(21),
|
|
|
|
|
Container(
|
|
|
|
|
decoration: containerRadius(Colors.white, 12),
|
|
|
|
|
decoration: containerRadius(getMealsScheduleResponseModelList[1].isShow ? Colors.white : Colors.grey[300], 12),
|
|
|
|
|
child: AppExpandableNotifier(
|
|
|
|
|
title: "Lunch TAT: " + DateUtil.convertTime(getMealsScheduleResponseModelList[1].tATTime),
|
|
|
|
|
isTitleSingleLine: false,
|
|
|
|
|
widgetColor: Colors.transparent,
|
|
|
|
|
isDisabled: !getMealsScheduleResponseModelList[1].isShow,
|
|
|
|
|
bodyWidget: Column(
|
|
|
|
|
children: [
|
|
|
|
|
getDivider(),
|
|
|
|
|
Container(
|
|
|
|
|
height: 200.0,
|
|
|
|
|
),
|
|
|
|
|
ListView.separated(
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return Container(
|
|
|
|
|
padding: EdgeInsets.all(21.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(_getMealItemsScheduleResponseModelLunch[index].filterName,
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w600, fontSize: 18.0, letterSpacing: -0.64, color: CustomColors.darkGrey)),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12.0,
|
|
|
|
|
),
|
|
|
|
|
ListView.separated(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemBuilder: (context, index2) {
|
|
|
|
|
return Container(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
LargeAvatar(
|
|
|
|
|
name: _getMealItemsScheduleResponseModelLunch[index].getMealItemsScheduleResponseModelList[index2].description,
|
|
|
|
|
url: "https://www.pumpkinnspice.com/wp-content/uploads/2016/03/easy-breakfast-quesadillas-11-683x1024.jpg",
|
|
|
|
|
width: 60,
|
|
|
|
|
height: 60,
|
|
|
|
|
radius: 5,
|
|
|
|
|
disableProfileView: true,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 11),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
MyRichText(
|
|
|
|
|
"",
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? _getMealItemsScheduleResponseModelLunch[index].getMealItemsScheduleResponseModelList[index2].descriptionN
|
|
|
|
|
: _getMealItemsScheduleResponseModelLunch[index].getMealItemsScheduleResponseModelList[index2].description,
|
|
|
|
|
projectViewModel.isArabic),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: EdgeInsets.all(16.0),
|
|
|
|
|
child: Divider(
|
|
|
|
|
height: 1.5,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.grey.shade200,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
itemCount: _getMealItemsScheduleResponseModelLunch[index].getMealItemsScheduleResponseModelList.length),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: EdgeInsets.only(left: 15, right: 15),
|
|
|
|
|
child: Divider(
|
|
|
|
|
height: 1.5,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.grey.shade200,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
itemCount: _getMealItemsScheduleResponseModelLunch.length),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
mHeight(21),
|
|
|
|
|
Container(
|
|
|
|
|
decoration: containerRadius(Colors.white, 12),
|
|
|
|
|
decoration: containerRadius(getMealsScheduleResponseModelList[2].isShow ? Colors.white : Colors.grey[300], 12),
|
|
|
|
|
child: AppExpandableNotifier(
|
|
|
|
|
title: "Dinner TAT: " + DateUtil.convertTime(getMealsScheduleResponseModelList[2].tATTime),
|
|
|
|
|
isTitleSingleLine: false,
|
|
|
|
|
widgetColor: Colors.transparent,
|
|
|
|
|
isDisabled: !getMealsScheduleResponseModelList[2].isShow,
|
|
|
|
|
bodyWidget: Column(
|
|
|
|
|
children: [
|
|
|
|
|
getDivider(),
|
|
|
|
|
Container(
|
|
|
|
|
height: 200.0,
|
|
|
|
|
),
|
|
|
|
|
ListView.separated(
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return Container(
|
|
|
|
|
padding: EdgeInsets.all(21.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(_getMealItemsScheduleResponseModelDinner[index].filterName,
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w600, fontSize: 18.0, letterSpacing: -0.64, color: CustomColors.darkGrey)),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12.0,
|
|
|
|
|
),
|
|
|
|
|
ListView.separated(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemBuilder: (context, index2) {
|
|
|
|
|
return Container(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
LargeAvatar(
|
|
|
|
|
name: _getMealItemsScheduleResponseModelDinner[index].getMealItemsScheduleResponseModelList[index2].description,
|
|
|
|
|
url: "https://www.pumpkinnspice.com/wp-content/uploads/2016/03/easy-breakfast-quesadillas-11-683x1024.jpg",
|
|
|
|
|
width: 60,
|
|
|
|
|
height: 60,
|
|
|
|
|
radius: 5,
|
|
|
|
|
disableProfileView: true,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 11),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
MyRichText(
|
|
|
|
|
"",
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? _getMealItemsScheduleResponseModelDinner[index].getMealItemsScheduleResponseModelList[index2].descriptionN
|
|
|
|
|
: _getMealItemsScheduleResponseModelDinner[index].getMealItemsScheduleResponseModelList[index2].description,
|
|
|
|
|
projectViewModel.isArabic),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: EdgeInsets.all(16.0),
|
|
|
|
|
child: Divider(
|
|
|
|
|
height: 1.5,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.grey.shade200,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
itemCount: _getMealItemsScheduleResponseModelDinner[index].getMealItemsScheduleResponseModelList.length),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: EdgeInsets.only(left: 15, right: 15),
|
|
|
|
|
child: Divider(
|
|
|
|
|
height: 1.5,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.grey.shade200,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
itemCount: _getMealItemsScheduleResponseModelDinner.length),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|