constrain mobile mode switcher and expand error logs
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user