Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions open_wearable/docs/pages/device-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
- Constructor input: `Wearable device`.
- `WearablesProvider` (for sensor shutdown/disconnect helper flow).
- `FirmwareUpdateRequestProvider` (for preselecting FOTA target).
- Device capabilities to unlock sections (`AudioModeManager`, `RgbLed`, `StatusLed`, `Battery*`, etc.).
- Device capabilities to unlock sections (`AudioModeManager`, `PowerSavingModeManager`, `RgbLed`, `StatusLed`, `Battery*`, etc.).
- Does:
- Shows detailed per-device controls and metadata.
- Shows detailed per-device controls and metadata, and pair-aware power saving mode selection when supported.
- Handles disconnect flow and "forget" helper (system settings handoff).
- Prepares firmware update target and navigates to FOTA flow.
- Provides:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import 'package:open_wearable/widgets/app_toast.dart';
import 'package:open_wearable/widgets/common/app_section_card.dart';
import 'package:open_wearable/widgets/devices/device_detail/audio_mode_widget.dart';
import 'package:open_wearable/widgets/devices/device_detail/device_detail_shared_widgets.dart';
import 'package:open_wearable/widgets/devices/device_detail/power_saving_mode_widget.dart';
import 'package:open_wearable/widgets/devices/device_status_pills.dart';
import 'package:open_wearable/widgets/devices/wearable_icon.dart';
import 'package:provider/provider.dart';
Expand Down Expand Up @@ -252,6 +253,17 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
),
),
),
if (widget.device.hasCapability<PowerSavingModeManager>())
Card(
margin: EdgeInsets.zero,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
child: PowerSavingModeWidget(
device: widget.device,
applyScope: StereoPairApplyScope.userSelectable,
),
),
),
_buildInfoCard(context),
if (_supportsFotaSlotInfo) _buildFotaDetailsCard(),
if (widget.device.hasCapability<StatusLed>() &&
Expand Down
Loading
Loading