Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
update const replacement text (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafovdenis authored Oct 4, 2021
1 parent 624874f commit 179c505
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class PreferConstBorderRadiusRule extends FlutterRule {
return value != null
? Replacement(
comment: _replaceComment,
replacement: 'BorderRadius.all(Radius.circular($value))',
replacement: 'const BorderRadius.all(Radius.circular($value))',
)
: null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ void main() {
'Replace with const BorderRadius constructor.',
],
replacements: [
'BorderRadius.all(Radius.circular(1.0))',
'BorderRadius.all(Radius.circular(2.0))',
'BorderRadius.all(Radius.circular(3.0))',
'BorderRadius.all(Radius.circular(4.0))',
'BorderRadius.all(Radius.circular(5.0))',
'BorderRadius.all(Radius.circular(_constValue))',
'const BorderRadius.all(Radius.circular(1.0))',
'const BorderRadius.all(Radius.circular(2.0))',
'const BorderRadius.all(Radius.circular(3.0))',
'const BorderRadius.all(Radius.circular(4.0))',
'const BorderRadius.all(Radius.circular(5.0))',
'const BorderRadius.all(Radius.circular(_constValue))',
],
locationTexts: [
'BorderRadius.circular(1.0)',
Expand Down

0 comments on commit 179c505

Please sign in to comment.