2023-06-02 00:38:19 +02:00
|
|
|
import 'package:ernaehrung/android/components/meal_page_food_component.dart';
|
2023-05-29 12:08:46 +02:00
|
|
|
import 'package:ernaehrung/android/components/meal_page_text/days_component.dart';
|
|
|
|
import 'package:ernaehrung/android/components/meal_page_text/statistics_today_component.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class MealPlanPage extends StatefulWidget {
|
|
|
|
final String title;
|
|
|
|
final Color backgroundColor = const Color(0xff47a44b);
|
|
|
|
|
|
|
|
const MealPlanPage({Key? key, required this.title}) : super(key: key);
|
|
|
|
|
|
|
|
String get getTitle => title;
|
|
|
|
|
|
|
|
@override
|
|
|
|
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
|
|
|
return getTitle;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<StatefulWidget> createState() => _MealPlanState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _MealPlanState extends State<MealPlanPage> {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
2023-06-02 01:42:56 +02:00
|
|
|
body: SizedBox(
|
2023-05-29 12:08:46 +02:00
|
|
|
width: double.infinity,
|
|
|
|
height: double.infinity,
|
2023-05-31 23:22:38 +02:00
|
|
|
child: SingleChildScrollView(
|
2023-05-29 12:08:46 +02:00
|
|
|
child: Column(
|
2023-06-02 01:42:56 +02:00
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
color: Colors.white,
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(8))),
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
vertical: 8, horizontal: 16),
|
|
|
|
child: Column(
|
|
|
|
children: const [
|
|
|
|
DaysMealPageComponent(),
|
|
|
|
StatisticsPercentage(),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const MealPageStatisticsFoodComponent(),
|
2023-05-29 12:08:46 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
}
|