Skip to content

Commit

Permalink
Merge pull request #21 from JonasWanke/make-fill-or-wrap-const
Browse files Browse the repository at this point in the history
Make `FillOrWrap`'s constructor const
  • Loading branch information
JonasWanke authored Oct 24, 2023
2 parents 7dc99c7 + 6fa6451 commit 9d54d18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/src/widgets/fill_or_wrap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ import '../render_object.dart';
/// positioned **below each other** ("wrapped"). This is similar to a [Column]
/// with [MainAxisSize.min].
class FillOrWrap extends MultiChildRenderObjectWidget {
// TODO(JonasWanke): Make this const when upgrading the minimum Flutter version.
// ignore: prefer_const_constructors_in_immutables
FillOrWrap({
const FillOrWrap({
super.key,
this.spacing = 0,
this.wrappedSpacing = 0,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ screenshots:

environment:
sdk: '>=3.0.0 <4.0.0'
flutter: '>=3.7.0'
flutter: '>=3.10.0'

dependencies:
collection: ^1.16.0
Expand Down

0 comments on commit 9d54d18

Please sign in to comment.