Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for dart 3 #177

Merged
merged 1 commit into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install dependencies
run: flutter pub get
- name: Format
run: flutter format --set-exit-if-changed lib test
run: dart format --set-exit-if-changed lib test
- name: Analyze
run: flutter analyze lib test
- name: Run tests
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [5.1.3] - 09.04.2023

* Prepare for dart 3

## [5.1.2] - 18.06.2022

* Documentation improvements
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Dimitrios Begnis
Copyright (c) 2023 Dimitrios Begnis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A flutter `ListView` in which list items can be grouped to sections.
Add the package to your pubspec.yaml:

```yaml
grouped_list: ^5.1.2
grouped_list: ^5.1.3
```

In your dart file, import the library:
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ publish_to: 'none'
version: 2.0.0

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.17.0 <4.0.0"
flutter: ">=1.17.0"

dependencies:
flutter:
sdk: flutter
grouped_list:
path: ../
intl: ^0.17.0
intl: ^0.18.0

dev_dependencies:
flutter_test:
Expand Down
2 changes: 1 addition & 1 deletion lib/grouped_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class _GroupedListViewState<T, E> extends State<GroupedListView<T, E>> {
if (_sortedElements.isEmpty) {
return;
}

_listBox ??= _key.currentContext?.findRenderObject() as RenderBox?;
var listPos = _listBox?.localToGlobal(Offset.zero).dy ?? 0;
_headerBox ??=
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: grouped_list
description: A Flutter ListView where the list items can be grouped into sections.
version: 5.1.2
version: 5.1.3
homepage: https://begnis.dev
repository: https://github.com/Dimibe/grouped_list

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.17.0 <4.0.0"
flutter: ">=1.17.0"

dependencies:
Expand Down