Skip to content

Commit

Permalink
feat: support constant children (#15)
Browse files Browse the repository at this point in the history
* feat: support constant children

* update changelog
  • Loading branch information
nggepe authored Aug 2, 2023
1 parent 77cf1f4 commit 01670d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.1.4]

- Support constant children

## [0.1.3]

- Upgrade sdk version
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.3"
version: "0.1.4"
sky_engine:
dependency: transitive
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion lib/simple_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class SpGrid extends StatelessWidget {

///sorting children by type
List<SpGridItem> _childrenSort(List<SpGridItem> children, String type) {
List<SpGridItem> newChildren = children;
List<SpGridItem> newChildren = List.from(children);
newChildren.sort((a, b) {
switch (type) {
case 'xs':
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: simple_grid
description: "A dynamic grid inspired by boostrap, you can use it to describe your grid layout. This package purely using mediaquery, don't worry about the render."
version: 0.1.3
version: 0.1.4
issue_tracker: https://github.com/nggepe/simple_grid
homepage: "https://github.com/nggepe/simple_grid"

Expand Down

0 comments on commit 01670d0

Please sign in to comment.