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) { FlutterError.onError = (details) {
AppLogger.error( AppLogger.error(
'Flutter', 'Flutter',
details.exceptionAsString(), '界面渲染异常:${details.exceptionAsString()}\n$details',
stackTrace: details.stack, stackTrace: details.stack,
); );
FlutterError.presentError(details); FlutterError.presentError(details);
+9 -6
View File
@@ -951,12 +951,15 @@ class _NativeMobileDrawerContent extends StatelessWidget {
), ),
), ),
const SizedBox(height: 12), const SizedBox(height: 12),
_ModeSwitcher( SizedBox(
mode: mode, width: 220,
onModeChanged: onModeChanged, child: _ModeSwitcher(
onSettings: onSettings, mode: mode,
showLabelWhenSelected: true, onModeChanged: onModeChanged,
showTooltips: false, onSettings: onSettings,
showLabelWhenSelected: true,
showTooltips: false,
),
), ),
], ],
), ),