Skip to content

Commit

Permalink
[fwfh_just_audio] Drop support for Flutter@3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson committed May 15, 2024
1 parent 4967ffb commit f375e92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/fwfh_just_audio/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: WidgetFactory extension to render AUDIO with the just_audio plugin.
homepage: https://github.com/daohoangson/flutter_widget_from_html

environment:
flutter: ">=3.7.0"
flutter: ">=3.10.0"
sdk: ">=2.19.0 <4.0.0"

dependencies:
Expand Down
12 changes: 5 additions & 7 deletions packages/fwfh_just_audio/test/audio_player_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,14 @@ Future<void> main() async {
_duration = const Duration(milliseconds: 10);
_playbackEvents = StreamController<PlaybackEventMessage>.broadcast();

// TODO: remove lint ignore when our minimum Flutter version >= 3.10
// ignore: deprecated_member_use
audioSessionMc.setMockMethodCallHandler((_) async {});
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(
audioSessionMc,
(_) => null,
);
});

tearDown(() {
// TODO: remove lint ignore when our minimum Flutter version >= 3.10
// ignore: deprecated_member_use
audioSessionMc.setMockMethodCallHandler((_) async {});

_playbackEvents.close();
});

Expand Down

0 comments on commit f375e92

Please sign in to comment.