forked from eatvio/eatvio_app
feat(diary): Checkboxes for product when diet is chosen
This commit is contained in:
@@ -54,10 +54,8 @@ class DiaryRecommendationsScreen extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildDiaryRecommendations(
|
||||
BuildContext context, DiaryStateLoaded state) {
|
||||
final Portion product =
|
||||
new Portion(id: 1, product_name: "", quantity: 1, portion: "");
|
||||
Widget _buildDiaryRecommendations(BuildContext context, DiaryStateLoaded state) {
|
||||
final Portion product = new Portion(id: 1, product_name: "", quantity: 1, portion: "", from_diet: true);
|
||||
return Stack(
|
||||
alignment: Alignment.bottomCenter,
|
||||
children: [
|
||||
@@ -88,13 +86,9 @@ class DiaryRecommendationsScreen extends StatelessWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'Название продукта: ${product.product_name}',
|
||||
style: TextStyle(fontSize: 24)),
|
||||
Text('Название продукта: ${product.product_name}', style: TextStyle(fontSize: 24)),
|
||||
SizedBox(height: 16),
|
||||
Text(
|
||||
'Количество: ${product.quantity} ${product.portion}',
|
||||
style: TextStyle(fontSize: 18)),
|
||||
Text('Количество: ${product.quantity} ${product.portion}', style: TextStyle(fontSize: 18)),
|
||||
// Добавьте другие детали о продукте по необходимости
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user