ModernMemoires/lib/views/statistic/statistic_page.dart

55 lines
1.9 KiB
Dart
Raw Normal View History

2023-12-17 23:00:31 +01:00
import 'package:flutter/material.dart';
import 'package:moody/views/statistic/widget/calendar_widget.dart';
import 'package:moody/views/statistic/widget/streak_widget.dart';
class StatisticPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: SafeArea(
child: Scaffold(
appBar: AppBar(title: Text('StattisitcsSite')),
body: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
SizedBox(
height: 50,
),
StreakWidget(dayCount: 5),
Text(
"browse your memories!",
style: TextStyle(fontSize: 24),
),
Container(
height: 500,
child: SingleChildScrollView(
child: Column(
children: [
Container(
child: CalendarWidget(currentDate: DateTime.now())),
Container(
child: CalendarWidget(
currentDate: DateTime(
DateTime.now().year,
DateTime.now().month - 1,
DateTime.now().day))),
Container(
child: CalendarWidget(
currentDate: DateTime(
DateTime.now().year,
DateTime.now().month - 2,
DateTime.now().day))),
SizedBox(
height: 50,
)
],
),
),
),
]),
),
),
);
}
}