Skip to content

Commit

Permalink
Format files
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Jul 3, 2023
1 parent b7ba18e commit 0ad7fa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions system_theme_web/lib/system_theme_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class SystemThemeWeb {
e?.style.backgroundColor = currentBackgroundColor;
if (backgroundColor != null) {
backgroundColor = backgroundColor
.replaceAll('rgb(', '')
.replaceAll(')', '')
.replaceAll(' ', '');
final rgb = backgroundColor.split(',');
.replaceAll('rgb(', '')
.replaceAll(')', '')
.replaceAll(' ', '');
final rgb = backgroundColor.split(',');
return {
'accent': {
'R': int.parse(rgb[0]),
Expand All @@ -40,7 +40,7 @@ class SystemThemeWeb {
}
};
}

return null;
}
}
2 changes: 1 addition & 1 deletion test/system_theme_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void main() {
expect(kDefaultFallbackColor.toString(), color);
});
});

tearDown(() {
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel, null);
Expand Down

0 comments on commit 0ad7fa0

Please sign in to comment.