Flutter-Ernaehrungsapp/lib/pages/nav_pages/subpages/progress_page/progress_page.dart

41 lines
1.0 KiB
Dart
Raw Normal View History

2023-06-25 14:43:07 +02:00
2023-05-29 12:08:46 +02:00
import 'package:flutter/material.dart';
2023-06-25 14:43:07 +02:00
import 'sub_components/charts/progress_charts_overview.dart';
import 'sub_components/list_view/progress_all_meals_component.dart';
class ProgressPage extends StatefulWidget {
2023-05-29 12:08:46 +02:00
final String title;
final Color backgroundColor = const Color(0xff47a44b);
2023-06-25 14:43:07 +02:00
const ProgressPage({Key? key, required this.title}) : super(key: key);
2023-05-29 12:08:46 +02:00
String get getTitle => title;
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return getTitle;
}
@override
2023-06-25 14:43:07 +02:00
State<StatefulWidget> createState() => ProgressState();
2023-05-29 12:08:46 +02:00
}
2023-06-25 14:43:07 +02:00
class ProgressState extends State<ProgressPage> {
2023-05-29 12:08:46 +02:00
@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-16 08:34:41 +02:00
children: const [
2023-06-25 14:43:07 +02:00
ProgressChartsOverviewComponent(),
ProgressAllMealsComponent(),
2023-05-29 12:08:46 +02:00
],
),
)));
}
}