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';
|
|
|
|
|
2023-12-18 17:51:22 +01:00
|
|
|
import '../../utils/widgets/BottomNavigationWidget.dart';
|
|
|
|
|
2023-12-17 23:00:31 +01:00
|
|
|
class StatisticPage extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return MaterialApp(
|
2023-12-18 17:51:22 +01:00
|
|
|
home: Scaffold(
|
|
|
|
appBar: AppBar(title: Text('StattisitcsSite')),
|
|
|
|
body: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
SizedBox(
|
|
|
|
height: 50,
|
|
|
|
),
|
|
|
|
StreakWidget(dayCount: 5),
|
|
|
|
Text(
|
|
|
|
"browse your memories!",
|
|
|
|
style: TextStyle(fontSize: 24),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
height: 650,
|
|
|
|
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,
|
|
|
|
)
|
|
|
|
],
|
2023-12-17 23:00:31 +01:00
|
|
|
),
|
|
|
|
),
|
2023-12-18 17:51:22 +01:00
|
|
|
),
|
|
|
|
]),
|
|
|
|
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
|
|
|
|
floatingActionButton:
|
|
|
|
CustomBottomNavigationBar(initialSelectedIndex: 0),
|
2023-12-17 23:00:31 +01:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|