ModernMemoires/lib/views/statistic/statistic_page.dart

58 lines
2.0 KiB
Dart

import 'package:flutter/material.dart';
import 'package:moody/views/statistic/widget/calendar_widget.dart';
import 'package:moody/views/statistic/widget/streak_widget.dart';
import '../../utils/widgets/BottomNavigationWidget.dart';
class StatisticPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('StatisticsSite')),
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,
)
],
),
),
),
]),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
floatingActionButton:
CustomBottomNavigationBar(initialSelectedIndex: 0),
),
);
}
}