Commit 6cf128b

derdilla <82763757+NobodyForNothing@users.noreply.github.com>
2024-05-13 11:54:08
improve ble gatt information
Signed-off-by: derdilla <82763757+NobodyForNothing@users.noreply.github.com>
1 parent 9da3f86
Changed files (2)
app
lib
app/lib/components/bluetooth_input.dart
@@ -126,9 +126,16 @@ class _BluetoothInputState extends State<BluetoothInput> {
         if (context.mounted) {
           await showDialog(
             context: context,
-            builder: (BuildContext context) => Text(
-              AppLocalizations.of(context)!.aboutBleInput,
-            )
+            builder: (BuildContext context) => AlertDialog(
+              title: Text(AppLocalizations.of(context)!.bluetoothInput),
+              content: Text(AppLocalizations.of(context)!.aboutBleInput),
+                actions: <Widget>[
+                  ElevatedButton(
+                    child: Text((AppLocalizations.of(context)!.btnConfirm)),
+                    onPressed: () => Navigator.of(context).pop(),
+                  ),
+                ],
+            ),
           );
         }
       },
app/lib/l10n/app_en.arb
@@ -524,6 +524,6 @@
   "@connect": {},
   "bluetoothInput": "Bluetooth input",
   "@bluetoothInput": {},
-  "aboutBleInput": "Some measurement devices allow automatically transmitting measurements through the BLE GATT protocol. You can pair your device here or disable this option in the settings.",
+  "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": {}
 }