[ermine] Fix flutter layout exception in user_picker_base_shell
Fixed: 43233
Change-Id: Idb7573011e890d4d521fe11ce36ec9554c6f3810
diff --git a/settings/wifi/lib/src/wlan_manager.dart b/settings/wifi/lib/src/wlan_manager.dart
index b792857..64a2889 100644
--- a/settings/wifi/lib/src/wlan_manager.dart
+++ b/settings/wifi/lib/src/wlan_manager.dart
@@ -40,14 +40,8 @@
Widget widget;
if (!model.hasWifiAdapter) {
- widget = SettingsPage(
- scale: scale,
- sections: [
- SettingsSection.error(
- description: 'No wireless adapters are available on this device',
- scale: scale),
- _buildDebugSection(model, scale)
- ],
+ widget = Center(
+ child: Text('No wireless adapters are available on this device'),
);
} else if (model.loading) {
widget = _buildLoading(model, scale);