feat(diary): Recommended diet product list for current day (stump)

This commit is contained in:
2024-08-09 17:40:01 +03:00
parent e72ecb5e28
commit fa7bedbac7
2 changed files with 50 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
// ignore_for_file: unused_local_variable
import 'package:eatvio_app/features/diary/models/portion.dart';
import 'package:eatvio_app/features/diary/presentation/bloc/diary_bloc.dart';
import 'package:eatvio_app/features/diary/presentation/bloc/diary_state.dart';
import 'package:eatvio_app/core/app_export.dart';
@@ -55,6 +56,8 @@ class DiaryRecommendationsScreen extends StatelessWidget {
Widget _buildDiaryRecommendations(
BuildContext context, DiaryStateLoaded state) {
final Portion product =
new Portion(id: 1, product_name: "", quantity: 1, portion: "");
return Stack(
alignment: Alignment.bottomCenter,
children: [
@@ -75,7 +78,29 @@ class DiaryRecommendationsScreen extends StatelessWidget {
child: Padding(
padding: EdgeInsets.only(bottom: 5.v),
child: Column(
children: [],
children: [
Scaffold(
appBar: AppBar(
title: Text(product.product_name),
),
body: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Название продукта: ${product.product_name}',
style: TextStyle(fontSize: 24)),
SizedBox(height: 16),
Text(
'Количество: ${product.quantity} ${product.portion}',
style: TextStyle(fontSize: 18)),
// Добавьте другие детали о продукте по необходимости
],
),
),
)
],
),
),
),