From 010d0ed3317407524f3bd2e66dd80323ca7ec76a Mon Sep 17 00:00:00 2001 From: Jonas Bark Date: Sun, 2 Nov 2025 13:55:56 +0100 Subject: [PATCH] UI adjustments --- CHANGELOG.md | 6 +++++- lib/bluetooth/devices/bluetooth_device.dart | 2 +- lib/bluetooth/devices/shimano/shimano_di2.dart | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25e8224..72a52a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ +### 3.4.0 (unreleased) +**New Features:** +- Support for Shimano Di2 + ### 3.3.0 (31-10-2025) -**New Feature:** +**New Features:** - Support for Elite Sterzo (thanks @michidk) - Support for Gamepads - Support for cheap bluetooth remotes (such as [these](https://www.amazon.com/s?k=bluetooth+remote)) diff --git a/lib/bluetooth/devices/bluetooth_device.dart b/lib/bluetooth/devices/bluetooth_device.dart index 26470d5..adc1b39 100644 --- a/lib/bluetooth/devices/bluetooth_device.dart +++ b/lib/bluetooth/devices/bluetooth_device.dart @@ -212,7 +212,7 @@ abstract class BluetoothDevice extends BaseDevice { }), Text('$batteryLevel%'), ], - if (firmwareVersion != null) Text(' - Firmware: $firmwareVersion'), + if (firmwareVersion != null) Text(' - v$firmwareVersion'), if (firmwareVersion != null && this is ZwiftDevice && firmwareVersion != (this as ZwiftDevice).latestFirmwareVersion) ...[ diff --git a/lib/bluetooth/devices/shimano/shimano_di2.dart b/lib/bluetooth/devices/shimano/shimano_di2.dart index fdfcfe8..780729a 100644 --- a/lib/bluetooth/devices/shimano/shimano_di2.dart +++ b/lib/bluetooth/devices/shimano/shimano_di2.dart @@ -1,6 +1,7 @@ import 'dart:typed_data'; import 'package:dartx/dartx.dart'; +import 'package:flutter/material.dart'; import 'package:swift_control/bluetooth/messages/notification.dart'; import 'package:swift_control/main.dart'; import 'package:swift_control/utils/keymap/apps/custom_app.dart'; @@ -60,6 +61,19 @@ class ShimanoDi2 extends BluetoothDevice { } return Future.value(); } + + @override + Widget showInformation(BuildContext context) { + return Column( + children: [ + super.showInformation(context), + Text( + 'Make sure to set your Di2 buttons to D-Fly channels in the Shimano E-TUBE app.', + style: TextStyle(fontSize: 12, color: Colors.grey), + ), + ], + ); + } } class ShimanoDi2Constants {