feat: Implement command queue for BLE command handling

- Added BleCommandQueue to manage command serialization and responses in BleCommandSender.
- Updated writeData, writeDataAndWaitForAck, and writeDataAndWaitForResponse methods to utilize the command queue.
- Enhanced BleResponseHandler to complete commands based on responses received from the BLE device.
- Introduced new commands for channel management, including getChannel and setChannel.
- Created LocationTrailLayer and TrailControls widgets for displaying and managing location trails on the map.
- Added PermissionRequestDialog to handle location permission requests on app startup.
- Updated LocationTrackingService to allow GPS tracking without a BLE connection.
This commit is contained in:
Janez T
2025-10-18 21:12:02 +02:00
parent f88c9cfdd3
commit c50a260263
35 changed files with 1854 additions and 59 deletions

View File

@@ -51,6 +51,10 @@ class AppLocalizationsSl extends AppLocalizations {
String get locationPermissionPermanentlyDenied =>
'Dovoljenje za lokacijo trajno zavrnjeno. Prosimo, omogočite v Nastavitvah.';
@override
String get locationPermissionRequired =>
'Dovoljenje za lokacijo je potrebno za GPS sledenje in usklajevanje ekipe. Lahko ga omogočite kasneje v Nastavitvah.';
@override
String get locationServicesDisabled =>
'Lokacijske storitve so onemogočene. Prosimo, omogočite jih v Nastavitvah.';
@@ -233,7 +237,7 @@ class AppLocalizationsSl extends AppLocalizations {
'Naložite ali počistite vzorčne stike, sporočila kanalov in SAR označevalce za testiranje';
@override
String get loadSampleData => 'Naloži vzorčne podatke';
String get loadSampleData => 'Naloži vzorec';
@override
String get clearAllData => 'Počisti vse podatke';
@@ -701,6 +705,9 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get rooms => 'Sobe';
@override
String get channels => 'Kanali';
@override
String get cacheStatistics => 'Statistika predpomnilnika';