فهرست منبع

Add manage device storage option under advance settings

Neeraj Gupta 2 سال پیش
والد
کامیت
ef35a93ac2
1فایلهای تغییر یافته به همراه20 افزوده شده و 0 حذف شده
  1. 20 0
      lib/ui/advanced_settings_screen.dart

+ 20 - 0
lib/ui/advanced_settings_screen.dart

@@ -9,7 +9,9 @@ import 'package:photos/ui/components/icon_button_widget.dart';
 import 'package:photos/ui/components/menu_item_widget.dart';
 import 'package:photos/ui/components/menu_item_widget.dart';
 import 'package:photos/ui/components/title_bar_title_widget.dart';
 import 'package:photos/ui/components/title_bar_title_widget.dart';
 import 'package:photos/ui/components/title_bar_widget.dart';
 import 'package:photos/ui/components/title_bar_widget.dart';
+import 'package:photos/ui/tools/debug/cache_size_view.dart';
 import 'package:photos/utils/local_settings.dart';
 import 'package:photos/utils/local_settings.dart';
+import 'package:photos/utils/navigation_util.dart';
 
 
 class AdvancedSettingsScreen extends StatefulWidget {
 class AdvancedSettingsScreen extends StatefulWidget {
   const AdvancedSettingsScreen({super.key});
   const AdvancedSettingsScreen({super.key});
@@ -82,6 +84,24 @@ class _AdvancedSettingsScreenState extends State<AdvancedSettingsScreen> {
                                 isGestureDetectorDisabled: true,
                                 isGestureDetectorDisabled: true,
                               ),
                               ),
                             ),
                             ),
+                            const SizedBox(
+                              height: 24,
+                            ),
+                            MenuItemWidget(
+                              captionedTextWidget: const CaptionedTextWidget(
+                                title: "Manage device storage",
+                              ),
+                              menuItemColor: colorScheme.fillFaint,
+                              trailingWidget: Icon(
+                                Icons.chevron_right,
+                                color: colorScheme.strokeMuted,
+                              ),
+                              borderRadius: 8,
+                              alignCaptionedTextToLeft: true,
+                              onTap: () {
+                                routeToPage(context, const CacheSizeViewer());
+                              },
+                            ),
                           ],
                           ],
                         ),
                         ),
                       ],
                       ],