瀏覽代碼

Added keys to 'manage device storage' menuItems to remove infinite loading

ashilkn 2 年之前
父節點
當前提交
37e4a40545
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/ui/tools/debug/path_storage_viewer.dart

+ 2 - 0
lib/ui/tools/debug/path_storage_viewer.dart

@@ -76,6 +76,7 @@ class _PathStorageViewerState extends State<PathStorageViewer> {
 
   Widget _buildMenuItemWidget(DirectoryStat? stat, Object? err) {
     return MenuItemWidget(
+      key: UniqueKey(),
       alignCaptionedTextToLeft: true,
       captionedTextWidget: CaptionedTextWidget(
         title: widget.item.title,
@@ -102,6 +103,7 @@ class _PathStorageViewerState extends State<PathStorageViewer> {
       menuItemColor: getEnteColorScheme(context).fillFaint,
       isBottomBorderRadiusRemoved: widget.removeBottomRadius,
       isTopBorderRadiusRemoved: widget.removeTopRadius,
+      showOnlyLoadingState: true,
       onTap: () async {
         if (kDebugMode) {
           await Clipboard.setData(ClipboardData(text: widget.item.path));