From 8ecafa9723f378de8a3bb85677f441531389a0ab Mon Sep 17 00:00:00 2001 From: BigDuck Date: Mon, 12 Jan 2026 00:17:10 +0800 Subject: [PATCH] style: IntensityLegend improvement --- lib/app/map/_lib/managers/precipitation.dart | 18 +++++++++--------- lib/app/map/_lib/managers/wind.dart | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/app/map/_lib/managers/precipitation.dart b/lib/app/map/_lib/managers/precipitation.dart index 19ae6eee4..d73e54023 100644 --- a/lib/app/map/_lib/managers/precipitation.dart +++ b/lib/app/map/_lib/managers/precipitation.dart @@ -592,16 +592,16 @@ class PrecipitationMapLayerSheet extends StatelessWidget { child: ColorLegend( unit: 'mm', items: [ - ColorLegendItem(color: const Color(0xffc2c2c2), value: 0), - ColorLegendItem(color: const Color(0xFF9CFCFF), value: 10), - ColorLegendItem(color: const Color(0xFF059BFF), value: 30), - ColorLegendItem(color: const Color(0xFF39FF03), value: 50), - ColorLegendItem(color: const Color(0xFFFFFB03), value: 100), - ColorLegendItem(color: const Color(0xFFFF9500), value: 200), - ColorLegendItem(color: const Color(0xFFFF0000), value: 300), - ColorLegendItem(color: const Color(0xFFFB00FF), value: 500), - ColorLegendItem(color: const Color(0xFF960099), value: 1000), ColorLegendItem(color: const Color(0xFF000000), value: 2000), + ColorLegendItem(color: const Color(0xFF960099), value: 1000), + ColorLegendItem(color: const Color(0xFFFB00FF), value: 500), + ColorLegendItem(color: const Color(0xFFFF0000), value: 300), + ColorLegendItem(color: const Color(0xFFFF9500), value: 200), + ColorLegendItem(color: const Color(0xFFFFFB03), value: 100), + ColorLegendItem(color: const Color(0xFF39FF03), value: 50), + ColorLegendItem(color: const Color(0xFF059BFF), value: 30), + ColorLegendItem(color: const Color(0xFF9CFCFF), value: 10), + ColorLegendItem(color: const Color(0xffc2c2c2), value: 0), ], ), ), diff --git a/lib/app/map/_lib/managers/wind.dart b/lib/app/map/_lib/managers/wind.dart index 5664a6555..158ae5186 100644 --- a/lib/app/map/_lib/managers/wind.dart +++ b/lib/app/map/_lib/managers/wind.dart @@ -416,18 +416,18 @@ class WindMapLayerSheet extends StatelessWidget { LegendItem( icon: const OutlinedIcon( Symbols.navigation_rounded, - fill: Color(0xffffffff), + fill: Color(0xffff006b), size: 20, ), - label: '0.1 - 3.3', + label: '≥ 32.7', ), LegendItem( icon: const OutlinedIcon( Symbols.navigation_rounded, - fill: Color(0xff03fff0), + fill: Color(0xff8000ff), size: 20, ), - label: '3.4 - 7.9', + label: '13.9 - 32.6', ), LegendItem( icon: const OutlinedIcon( @@ -440,18 +440,18 @@ class WindMapLayerSheet extends StatelessWidget { LegendItem( icon: const OutlinedIcon( Symbols.navigation_rounded, - fill: Color(0xff8000ff), + fill: Color(0xff03fff0), size: 20, ), - label: '13.9 - 32.6', + label: '3.4 - 7.9', ), LegendItem( icon: const OutlinedIcon( Symbols.navigation_rounded, - fill: Color(0xffff006b), + fill: Color(0xffffffff), size: 20, ), - label: '≥ 32.7', + label: '0.1 - 3.3', ), ], ),