Skip to content

Commit

Permalink
chore: remove stats button and move section to settings > about or …
Browse files Browse the repository at this point in the history
…`sidebar > namida`
  • Loading branch information
MSOB7YY committed Aug 1, 2024
1 parent 38e7bae commit b3c08e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
14 changes: 0 additions & 14 deletions lib/core/namida_converter_ext.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import 'package:namida/ui/pages/tracks_page.dart';
import 'package:namida/ui/widgets/circular_percentages.dart';
import 'package:namida/ui/widgets/custom_widgets.dart';
import 'package:namida/ui/widgets/settings_search_bar.dart';
import 'package:namida/ui/widgets/stats.dart';
import 'package:namida/youtube/class/youtube_id.dart';
import 'package:namida/youtube/controller/youtube_history_controller.dart';
import 'package:namida/youtube/controller/youtube_playlist_controller.dart' as ytplc;
Expand Down Expand Up @@ -817,19 +816,6 @@ extension RouteUtils on NamidaRoute {
shouldShow: route == RouteType.PAGE_queue,
),

// -- Stats Icon
getAnimatedCrossFade(
child: NamidaAppBarIcon(
icon: Broken.chart_21,
onPressed: () {
SettingsSubPage(
title: lang.STATS,
child: const StatsSection(),
).navigate();
},
),
shouldShow: shouldShowInitialActions),

// -- Parsing Json Icon
getAnimatedCrossFade(child: const ParsingJsonPercentage(size: 30.0), shouldShow: shouldShowProgressPercentage),

Expand Down
2 changes: 2 additions & 0 deletions lib/ui/pages/about_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import 'package:namida/core/utils.dart';
import 'package:namida/ui/widgets/custom_widgets.dart';
import 'package:namida/ui/widgets/settings/extra_settings.dart';
import 'package:namida/ui/widgets/settings_card.dart';
import 'package:namida/ui/widgets/stats.dart';

String? _latestCheckedVersion;

Expand Down Expand Up @@ -240,6 +241,7 @@ class _AboutPageState extends State<AboutPage> {
],
),
),
const StatsSection(),
SettingsCard(
icon: Broken.hierarchy,
title: 'Developement',
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/widgets/custom_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -625,10 +625,10 @@ class StatsContainer extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.all(12.0),
padding: const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
decoration: BoxDecoration(
color: context.theme.cardTheme.color?.withAlpha(200),
borderRadius: BorderRadius.circular(22.0.multipliedRadius),
borderRadius: BorderRadius.circular(18.0.multipliedRadius),
),
margin: const EdgeInsets.symmetric(horizontal: 4.0, vertical: 5.0),
child: child ??
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: namida
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
publish_to: "none"
version: 2.7.34-beta+240801000
version: 3.7.4-beta+240801001

environment:
sdk: ">=3.4.0 <4.0.0"
Expand Down

0 comments on commit b3c08e6

Please sign in to comment.