2023-05-29 22:04:44 +02:00
|
|
|
import 'package:basic_utils/basic_utils.dart';
|
|
|
|
import 'package:ernaehrung/android/components/card/card_component.dart';
|
2023-05-29 12:08:46 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2023-05-30 09:38:54 +02:00
|
|
|
import 'package:hive/hive.dart';
|
2023-05-29 12:08:46 +02:00
|
|
|
import '../../components/diet_chart_component.dart';
|
|
|
|
import '../../components/statistics_circular_indicator_component.dart';
|
|
|
|
|
|
|
|
class TodayPage extends StatefulWidget {
|
|
|
|
final String title;
|
|
|
|
final Color backgroundColor = const Color(0xff47a44b);
|
|
|
|
const TodayPage({Key? key, required this.title}) : super(key: key);
|
|
|
|
@override
|
|
|
|
State<TodayPage> createState() => _TodayPageState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _TodayPageState extends State<TodayPage> {
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
body: SizedBox(
|
|
|
|
width: double.infinity,
|
|
|
|
height: double.infinity,
|
|
|
|
child: Container(
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
gradient: LinearGradient(
|
|
|
|
colors: [Color(0xff000000), Color(0xff47a44b)],
|
|
|
|
stops: [0.1, 5],
|
|
|
|
begin: Alignment.bottomCenter,
|
|
|
|
end: Alignment.topCenter,
|
|
|
|
)),
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 0),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
StatisticsPercentComponent(300, 100, 400),
|
|
|
|
DietChatComponent(1500),
|
2023-05-30 09:38:54 +02:00
|
|
|
FoodComponent(box: Hive.box('TODAY'),),
|
2023-05-29 12:08:46 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|