Commit 1bd7f72
Changed files (3)
app
lib
components
bluetooth_input
l10n
app/lib/components/bluetooth_input/input_card.dart
@@ -34,7 +34,7 @@ class InputCard extends StatelessWidget {
left: 16.0,
),
child: DefaultTextStyle(
- style: Theme.of(context).textTheme.titleLarge ?? const TextStyle(),
+ style: Theme.of(context).textTheme.titleMedium ?? const TextStyle(),
child: title!,
),
),
app/lib/components/bluetooth_input.dart
@@ -60,6 +60,7 @@ class _BluetoothInputState extends State<BluetoothInput> {
bloc: _deviceScanCubit,
builder: (context, DeviceScanState state) => switch(state) {
DeviceListLoading() => _buildMainCard(context,
+ title: Text(AppLocalizations.of(context)!.scanningForDevices),
child: const CircularProgressIndicator()),
DeviceListAvailable() => _buildMainCard(context,
title: Text(AppLocalizations.of(context)!.selectDevice),
@@ -141,6 +142,7 @@ class _BluetoothInputState extends State<BluetoothInput> {
},
);
}
+ // TODO: scanning devices info
Widget _buildMainCard(BuildContext context, {
app/lib/l10n/app_en.arb
@@ -521,8 +521,12 @@
"@selectDevice": {},
"connectTo": "Connect to {deviceName}?",
"@connectTo": {
- "type": "String",
- "example": "boso medicus CE6674"
+ "placeholders": {
+ "deviceName": {
+ "type": "String",
+ "example": "boso medicus CE6674"
+ }
+ }
},
"errMeasurementRead": "Error reading measurement",
"@errBluetooth": {},
@@ -533,5 +537,7 @@
"bluetoothInput": "Bluetooth input",
"@bluetoothInput": {},
"aboutBleInput": "Some measurement devices are BLE GATT compatible. You can pair these devices here and automatically transmit measurements or disable this option in the settings.",
- "@aboutBleInput": {}
+ "@aboutBleInput": {},
+ "scanningForDevices": "Scanning for devices",
+ "@scanningForDevices": {}
}