constrain mobile mode switcher and expand error logs

This commit is contained in:
ngfchl
2026-07-19 13:33:48 +08:00
parent 3eddce371d
commit 0d65bbbc4e
2 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -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);
+9 -6
View File
@@ -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,
),
),
],
),