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) {
|
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);
|
||||||
|
|||||||
@@ -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,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user