Commit 5af75ff

derdilla <82763757+NobodyForNothing@users.noreply.github.com>
2024-05-14 18:29:36
improve style
Signed-off-by: derdilla <82763757+NobodyForNothing@users.noreply.github.com>
1 parent 6cf128b
Changed files (3)
app
lib
components
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
@@ -513,8 +513,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": {},
@@ -525,5 +529,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": {}
 }