diff --git a/lib/main.dart b/lib/main.dart index 8a8f7c0..0cd7b1c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,7 +19,7 @@ void main() async { FlutterError.onError = (details) { AppLogger.error( 'Flutter', - details.exceptionAsString(), + '界面渲染异常:${details.exceptionAsString()}\n$details', stackTrace: details.stack, ); FlutterError.presentError(details); diff --git a/lib/pages/workspace_page.dart b/lib/pages/workspace_page.dart index 802669d..174d40e 100644 --- a/lib/pages/workspace_page.dart +++ b/lib/pages/workspace_page.dart @@ -951,12 +951,15 @@ class _NativeMobileDrawerContent extends StatelessWidget { ), ), const SizedBox(height: 12), - _ModeSwitcher( - mode: mode, - onModeChanged: onModeChanged, - onSettings: onSettings, - showLabelWhenSelected: true, - showTooltips: false, + SizedBox( + width: 220, + child: _ModeSwitcher( + mode: mode, + onModeChanged: onModeChanged, + onSettings: onSettings, + showLabelWhenSelected: true, + showTooltips: false, + ), ), ], ),