2023-05-26 00:59:09 +02:00
|
|
|
import 'package:ernaehrung/android/components/MealPageFoodComponent.dart';
|
|
|
|
import 'package:ernaehrung/android/components/meal_page_text/days_component.dart';
|
|
|
|
import 'package:ernaehrung/android/components/meal_page_text/statistics_today_component.dart';
|
2023-05-13 13:13:40 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class MealPlanPage extends StatefulWidget {
|
2023-04-23 13:08:04 +02:00
|
|
|
final String title;
|
2023-05-13 13:13:40 +02:00
|
|
|
final Color backgroundColor = const Color(0xff47a44b);
|
2023-05-26 00:59:09 +02:00
|
|
|
|
2023-04-23 13:08:04 +02:00
|
|
|
const MealPlanPage({Key? key, required this.title}) : super(key: key);
|
|
|
|
|
|
|
|
String get getTitle => title;
|
|
|
|
|
|
|
|
@override
|
|
|
|
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
|
|
|
return getTitle;
|
|
|
|
}
|
|
|
|
|
2023-05-13 13:13:40 +02:00
|
|
|
@override
|
|
|
|
State<StatefulWidget> createState() => _MealPlanState();
|
2023-04-23 13:08:04 +02:00
|
|
|
}
|
2023-05-13 13:13:40 +02:00
|
|
|
|
2023-05-26 00:59:09 +02:00
|
|
|
class _MealPlanState extends State<MealPlanPage> {
|
2023-05-13 13:13:40 +02:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
2023-05-26 00:59:09 +02:00
|
|
|
body: Container(
|
|
|
|
margin: const EdgeInsets.all(8),
|
|
|
|
width: double.infinity,
|
|
|
|
height: double.infinity,
|
|
|
|
child: SingleChildScrollView(
|
2023-05-13 13:13:40 +02:00
|
|
|
child: Column(
|
2023-05-26 00:59:09 +02:00
|
|
|
children: const [
|
|
|
|
DaysMealPageComponent(),
|
|
|
|
StatisticsPercentage(),
|
|
|
|
MealPageStatisticsFoodComponent(),
|
2023-05-13 13:13:40 +02:00
|
|
|
],
|
|
|
|
),
|
2023-05-26 00:59:09 +02:00
|
|
|
)));
|
2023-05-13 13:13:40 +02:00
|
|
|
}
|
2023-05-26 00:59:09 +02:00
|
|
|
}
|