Skip to content

Update Min Flutter SDK - #16

Merged
jshep23 merged 3 commits into
mainfrom
UpdateMinSdk
Apr 18, 2026
Merged

jshep23 merged 3 commits into
mainfrom
UpdateMinSdk

Conversation

@jshep23

@jshep23 jshep23 commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

This pull request updates the Flutter state management library to modernize its codebase, improve consistency, and ensure compatibility with recent Flutter and Dart versions. The most significant changes are grouped below:

Flutter and Dart Version Updates:

  • Updated the minimum Dart SDK requirement to >=3.0.0 and the Flutter SDK to >=3.38.0 in pubspec.yaml, ensuring compatibility with the latest stable releases.
  • Upgraded the flutter_lints dev dependency from version ^2.0.0 to ^6.0.0 for improved linting and code quality checks.

Constructor Modernization and Code Consistency:

  • Refactored constructors across the library and test widgets to use the super.key and required super.viewModel syntax, replacing the older Key? key and explicit forwarding, resulting in more concise and idiomatic Dart code. This change affects files such as lib/src/current.dart, lib/src/current_widget.dart, and several test files. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

Minor Code Cleanups:

  • Removed unnecessary .toList() calls in the MapTestWidget test, simplifying widget construction and improving code clarity.
  • Removed the named library identifier in lib/current.dart for Dart 3 compatibility.

Copilot AI review requested due to automatic review settings April 18, 2026 03:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the package for newer Dart/Flutter toolchains by raising SDK constraints and refactoring widget constructors to use super.key / super.viewModel, plus a small test cleanup.

Changes:

  • Bump minimum SDK constraints (Dart >=3.0.0, Flutter >=3.38.0) and update flutter_lints to ^6.0.0.
  • Modernize constructors across library and tests to use super.key and required super.viewModel.
  • Simplify a test widget by removing unnecessary .toList() calls when spreading iterables.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
test/current_widget_test.dart Refactors test widget constructors to super.viewModel (but drops Key params).
test/current_property_tests/string_property_test.dart Updates test widget constructor to super.key / super.viewModel.
test/current_property_tests/map_property_test.dart Updates constructor + removes .toList() in spread children.
test/current_property_tests/list_property_test.dart Updates test widget constructor to super.key / super.viewModel.
test/current_property_tests/int_property_test.dart Updates test widget constructor to super.key / super.viewModel.
test/current_property_tests/double_property_test.dart Updates test widget constructor to super.key / super.viewModel.
test/current_property_tests/current_property_test.dart Refactors constructor to super.viewModel (but drops Key param).
test/current_property_tests/bool_property_test.dart Updates test widget constructor to super.key / super.viewModel.
pubspec.yaml Raises Dart/Flutter minimums and upgrades flutter_lints.
lib/src/current_widget.dart Modernizes base widget constructor to accept super.key.
lib/src/current.dart Modernizes constructors (super.key, required super.child).
lib/current.dart Changes library directive (currently to library;).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pubspec.yaml
Comment thread lib/current.dart
Comment thread test/current_widget_test.dart
Comment thread test/current_widget_test.dart
Comment thread test/current_property_tests/current_property_test.dart
@jshep23
jshep23 merged commit a369ea7 into main Apr 18, 2026
9 checks passed
@jshep23
jshep23 deleted the UpdateMinSdk branch April 18, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants