Skip to content

Commit 261fe2e

Browse files
authored
IntensityLegend improvement (#499)
1 parent 664e60c commit 261fe2e

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

lib/app/map/_lib/managers/precipitation.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -592,16 +592,16 @@ class PrecipitationMapLayerSheet extends StatelessWidget {
592592
child: ColorLegend(
593593
unit: 'mm',
594594
items: [
595-
ColorLegendItem(color: const Color(0xffc2c2c2), value: 0),
596-
ColorLegendItem(color: const Color(0xFF9CFCFF), value: 10),
597-
ColorLegendItem(color: const Color(0xFF059BFF), value: 30),
598-
ColorLegendItem(color: const Color(0xFF39FF03), value: 50),
599-
ColorLegendItem(color: const Color(0xFFFFFB03), value: 100),
600-
ColorLegendItem(color: const Color(0xFFFF9500), value: 200),
601-
ColorLegendItem(color: const Color(0xFFFF0000), value: 300),
602-
ColorLegendItem(color: const Color(0xFFFB00FF), value: 500),
603-
ColorLegendItem(color: const Color(0xFF960099), value: 1000),
604595
ColorLegendItem(color: const Color(0xFF000000), value: 2000),
596+
ColorLegendItem(color: const Color(0xFF960099), value: 1000),
597+
ColorLegendItem(color: const Color(0xFFFB00FF), value: 500),
598+
ColorLegendItem(color: const Color(0xFFFF0000), value: 300),
599+
ColorLegendItem(color: const Color(0xFFFF9500), value: 200),
600+
ColorLegendItem(color: const Color(0xFFFFFB03), value: 100),
601+
ColorLegendItem(color: const Color(0xFF39FF03), value: 50),
602+
ColorLegendItem(color: const Color(0xFF059BFF), value: 30),
603+
ColorLegendItem(color: const Color(0xFF9CFCFF), value: 10),
604+
ColorLegendItem(color: const Color(0xffc2c2c2), value: 0),
605605
],
606606
),
607607
),

lib/app/map/_lib/managers/wind.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -416,18 +416,18 @@ class WindMapLayerSheet extends StatelessWidget {
416416
LegendItem(
417417
icon: const OutlinedIcon(
418418
Symbols.navigation_rounded,
419-
fill: Color(0xffffffff),
419+
fill: Color(0xffff006b),
420420
size: 20,
421421
),
422-
label: '0.1 - 3.3',
422+
label: '≥ 32.7',
423423
),
424424
LegendItem(
425425
icon: const OutlinedIcon(
426426
Symbols.navigation_rounded,
427-
fill: Color(0xff03fff0),
427+
fill: Color(0xff8000ff),
428428
size: 20,
429429
),
430-
label: '3.4 - 7.9',
430+
label: '13.9 - 32.6',
431431
),
432432
LegendItem(
433433
icon: const OutlinedIcon(
@@ -440,18 +440,18 @@ class WindMapLayerSheet extends StatelessWidget {
440440
LegendItem(
441441
icon: const OutlinedIcon(
442442
Symbols.navigation_rounded,
443-
fill: Color(0xff8000ff),
443+
fill: Color(0xff03fff0),
444444
size: 20,
445445
),
446-
label: '13.9 - 32.6',
446+
label: '3.4 - 7.9',
447447
),
448448
LegendItem(
449449
icon: const OutlinedIcon(
450450
Symbols.navigation_rounded,
451-
fill: Color(0xffff006b),
451+
fill: Color(0xffffffff),
452452
size: 20,
453453
),
454-
label: '≥ 32.7',
454+
label: '0.1 - 3.3',
455455
),
456456
],
457457
),

0 commit comments

Comments
 (0)