diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 477146d..33ce2eb 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1950799..52da224 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [5.1.3] - 09.04.2023 + +* Prepare for dart 3 + ## [5.1.2] - 18.06.2022 * Documentation improvements diff --git a/LICENSE b/LICENSE index 4ef124b..adc4c4d 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/README.md b/README.md index d83022b..737a743 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 22dc4fb..f9f92ee 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -4,7 +4,7 @@ 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: @@ -12,7 +12,7 @@ dependencies: sdk: flutter grouped_list: path: ../ - intl: ^0.17.0 + intl: ^0.18.0 dev_dependencies: flutter_test: diff --git a/lib/grouped_list.dart b/lib/grouped_list.dart index dc90c68..bd923eb 100644 --- a/lib/grouped_list.dart +++ b/lib/grouped_list.dart @@ -380,7 +380,7 @@ class _GroupedListViewState extends State> { if (_sortedElements.isEmpty) { return; } - + _listBox ??= _key.currentContext?.findRenderObject() as RenderBox?; var listPos = _listBox?.localToGlobal(Offset.zero).dy ?? 0; _headerBox ??= diff --git a/pubspec.yaml b/pubspec.yaml index 5c7357d..e979815 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: