Skip to content

Commit

Permalink
Merge pull request #2 from p0dyakov/main
Browse files Browse the repository at this point in the history
Remove `const` before `BorderRadius.zero` in `border_radius_transformer.dart`
  • Loading branch information
mark-nicepants committed Sep 29, 2023
2 parents 5e00fe6 + 0a0f007 commit ab683e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/transformers/border_radius_transformer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BorderRadiusTransformer extends SingleTokenTransformer {

if (dimensions.values.length == 1) {
if (dimensions.values[0].value == 0) {
return 'const BorderRadius.zero';
return 'BorderRadius.zero';
}

return 'BorderRadius.circular(${dimensions.values[0].value})';
Expand Down
2 changes: 1 addition & 1 deletion test/transformers/border_radius_transformer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void main() {
final transformer = BorderRadiusTransformer();
expect(
transformer.transform(token1),
equals('const BorderRadius.zero'),
equals('BorderRadius.zero'),
);
expect(
transformer.transform(token2),
Expand Down

0 comments on commit ab683e5

Please sign in to comment.