Skip to content

Commit

Permalink
feat: Tsunami Color
Browse files Browse the repository at this point in the history
  • Loading branch information
lowrt committed Feb 8, 2025
1 parent 8a9fe7a commit 69bb6e2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/app/page/map/tsunami/tsunami_estimate_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ class TsunamiEstimateList extends StatelessWidget {
}

heightToColor(height) {
if (height >= 2) {
if (height == 3) {
return const Color(0xFFE543FF);
} else if (height == 1) {
} else if (height == 2) {
return const Color(0xFFC90000);
} else {
} else if (height == 1) {
return const Color(0xFFFFC900);
} else {
return const Color(0xFF00AAFF);
}
}

Expand Down

0 comments on commit 69bb6e2

Please sign in to comment.