Skip to content

Commit

Permalink
build: Upgrade to Flutter 3.24
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash committed Sep 6, 2024
1 parent a249be3 commit 6d9deaa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
- name: Set up Flutter
uses: subosito/flutter-action@ea686d7c56499339ad176e9f19c516ff6cf05a31
with:
flutter-version: 3.22.2
flutter-version: 3.24.2
cache: true

- name: Set up environment paths
Expand Down
4 changes: 2 additions & 2 deletions optimus/lib/src/dropdown/dropdown_select.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class _DropdownSelectState<T> extends State<DropdownSelect<T>> {
});
}

void _handleOnBackPressed(bool didPop) {
void _handleOnBackPressed(bool didPop, _) {
if (didPop) return;
if (_effectiveFocusNode.hasFocus) {
_effectiveFocusNode.unfocus();
Expand Down Expand Up @@ -307,7 +307,7 @@ class _DropdownSelectState<T> extends State<DropdownSelect<T>> {

return PopScope(
canPop: _canPop,
onPopInvoked: _handleOnBackPressed,
onPopInvokedWithResult: _handleOnBackPressed,
child: widget.allowMultipleSelection && _hasValues
? MultiSelectInputField(
values: _values ?? [],
Expand Down
2 changes: 1 addition & 1 deletion optimus/lib/src/overlay_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class _OverlayControllerState<T> extends State<OverlayController<T>> {
@override
Widget build(BuildContext context) => PopScope(
canPop: !widget.focusNode.hasFocus,
onPopInvoked: (bool didPop) {
onPopInvokedWithResult: (bool didPop, _) {
if (didPop) return;
widget.focusNode.unfocus();
},
Expand Down
2 changes: 1 addition & 1 deletion optimus/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repository: https://github.com/MewsSystems/mews-flutter

environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.22.0"
flutter: ">=3.24.0"

dependencies:
dfunc: ^0.10.0
Expand Down

0 comments on commit 6d9deaa

Please sign in to comment.