UI adjustments

This commit is contained in:
Jonas Bark
2025-11-02 13:55:56 +01:00
parent 1f8f7765a3
commit 010d0ed331
3 changed files with 20 additions and 2 deletions

View File

@@ -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))

View File

@@ -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) ...[

View File

@@ -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 {