mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00

* feat: add playback history provider * feat: implement recently played section * refactor: use route names * feat: add stats summary and top tracks/artists/albums * feat: add top date based filtering * feat: add stream money calculation * refactor: place search in mobile navbar and settings in home appbar * feat: add individual minutes and streams page * feat(stats): add individual minutes and streams page * chore: default period to 1 month * feat: add text to explain user how hypothetical fees are calculated * chore: ensure usage of route names instead of direct paths * cd: add cache key * cd: remove media_kit_event_loop from git
36 lines
1.0 KiB
Dart
36 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:gap/gap.dart';
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:spotube/components/shared/page_window_title_bar.dart';
|
|
import 'package:spotube/components/stats/summary/summary.dart';
|
|
import 'package:spotube/components/stats/top/top.dart';
|
|
import 'package:spotube/utils/platform.dart';
|
|
|
|
class StatsPage extends HookConsumerWidget {
|
|
static const name = "stats";
|
|
|
|
const StatsPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context, ref) {
|
|
return SafeArea(
|
|
bottom: false,
|
|
child: Scaffold(
|
|
appBar: kIsMacOS || kIsMobile ? null : const PageWindowTitleBar(),
|
|
body: CustomScrollView(
|
|
slivers: [
|
|
if (kIsMacOS) const SliverGap(20),
|
|
const StatsPageSummarySection(),
|
|
const StatsPageTopSection(),
|
|
const SliverToBoxAdapter(
|
|
child: SafeArea(
|
|
child: SizedBox(),
|
|
),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|