Skip to content

Commit

Permalink
fix: alert type
Browse files Browse the repository at this point in the history
  • Loading branch information
whes1015 committed Aug 5, 2023
1 parent 04a5599 commit 1c42c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/view/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ class _HomePage extends State<HomePage> {
data["all"][i]["title"],
style: TextStyle(
fontSize: 20,
color: (data["all"][i]["type"] == 3)
color: (data["all"][i]["type"] == 2)
? Colors.red
: (data["all"][i]["type"] == 2)
: (data["all"][i]["type"] == 1)
? Colors.amber
: Colors.white,
fontWeight: FontWeight.w600),
Expand Down

0 comments on commit 1c42c5e

Please sign in to comment.