Skip to content

Commit

Permalink
Add alpha value to color (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Jul 4, 2024
2 parents 04b03ba + d6d47c9 commit 219b92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class SystemAccentColor {
Color? _retrieve(dynamic map) {
assert(map == null || map is Map);
if (map == null) return null;
return Color.fromRGBO(map['R'], map['G'], map['B'], 1.0);
return Color.fromARGB(map['A'] ?? 255, map['R'], map['G'], map['B']);
}

/// Releases any used resources
Expand Down

0 comments on commit 219b92d

Please sign in to comment.