mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-12 00:40:28 +00:00
feat: Update color handling in map drawings and enhance message sync functionality
This commit is contained in:
@@ -100,7 +100,7 @@ class LineDrawing extends MapDrawing {
|
||||
|
||||
return LineDrawing(
|
||||
id: json['id'] as String,
|
||||
color: Color.fromARGB32(json['color'] as int),
|
||||
color: Color(json['color'] as int),
|
||||
createdAt: DateTime.parse(json['createdAt'] as String),
|
||||
points: points,
|
||||
);
|
||||
@@ -157,7 +157,7 @@ class RectangleDrawing extends MapDrawing {
|
||||
|
||||
return RectangleDrawing(
|
||||
id: json['id'] as String,
|
||||
color: Color.fromARGB32(json['color'] as int),
|
||||
color: Color(json['color'] as int),
|
||||
createdAt: DateTime.parse(json['createdAt'] as String),
|
||||
topLeft: LatLng(topLeftJson['lat'] as double, topLeftJson['lon'] as double),
|
||||
bottomRight: LatLng(bottomRightJson['lat'] as double, bottomRightJson['lon'] as double),
|
||||
|
||||
Reference in New Issue
Block a user