Skip to content

Commit

Permalink
Merge branch 'fix/lints' into minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Feb 2, 2025
2 parents e5a1e4a + 163e68a commit 4ee4483
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 22 deletions.
6 changes: 3 additions & 3 deletions audio_service/example/lib/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ class SeekBar extends StatefulWidget {
final ValueChanged<Duration>? onChangeEnd;

const SeekBar({
Key? key,
super.key,
required this.duration,
required this.position,
this.bufferedPosition = Duration.zero,
this.onChanged,
this.onChangeEnd,
}) : super(key: key);
});

@override
SeekBarState createState() => SeekBarState();
Expand Down Expand Up @@ -141,7 +141,7 @@ class HiddenThumbComponentShape extends SliderComponentShape {
}

class LoggingAudioHandler extends CompositeAudioHandler {
LoggingAudioHandler(AudioHandler inner) : super(inner) {
LoggingAudioHandler(super.inner) {
playbackState.listen((state) {
_log('playbackState changed: $state');
});
Expand Down
4 changes: 2 additions & 2 deletions audio_service/example/lib/example_android13.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Future<void> main() async {
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -50,7 +50,7 @@ class MyApp extends StatelessWidget {
}

class MainScreen extends StatelessWidget {
const MainScreen({Key? key}) : super(key: key);
const MainScreen({super.key});

@override
Widget build(BuildContext context) {
Expand Down
12 changes: 6 additions & 6 deletions audio_service/example/lib/example_android_songs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Future<void> main() async {
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -98,7 +98,7 @@ class MyApp extends StatelessWidget {
}

class MainScreen extends StatefulWidget {
const MainScreen({Key? key}) : super(key: key);
const MainScreen({super.key});

@override
State<MainScreen> createState() => _MainScreenState();
Expand Down Expand Up @@ -225,7 +225,7 @@ class _MainScreenState extends State<MainScreen> {
}

class SongListScreen extends StatelessWidget {
const SongListScreen({Key? key}) : super(key: key);
const SongListScreen({super.key});

IconButton _button(IconData iconData, VoidCallback onPressed) => IconButton(
icon: Icon(iconData),
Expand Down Expand Up @@ -303,10 +303,10 @@ class SongListScreen extends StatelessWidget {

class SongTile extends StatelessWidget {
const SongTile({
Key? key,
super.key,
required this.song,
this.tappable = true,
}) : super(key: key);
});

final Song song;
final bool tappable;
Expand Down Expand Up @@ -337,7 +337,7 @@ class SongTile extends StatelessWidget {
///
/// See the comment at the top of the example for the full context.
class SongArt extends StatefulWidget {
const SongArt({Key? key, required this.song}) : super(key: key);
const SongArt({super.key, required this.song});

final Song song;

Expand Down
4 changes: 2 additions & 2 deletions audio_service/example/lib/example_multiple_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Future<void> main() async {

/// The app widget
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -76,7 +76,7 @@ class MainScreen extends StatelessWidget {
'Text-To-Speech',
];

const MainScreen({Key? key}) : super(key: key);
const MainScreen({super.key});

@override
Widget build(BuildContext context) {
Expand Down
6 changes: 3 additions & 3 deletions audio_service/example/lib/example_playlist.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Future<void> main() async {

/// The app widget
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -47,7 +47,7 @@ class MyApp extends StatelessWidget {

/// The main screen.
class MainScreen extends StatelessWidget {
const MainScreen({Key? key}) : super(key: key);
const MainScreen({super.key});

Stream<Duration> get _bufferedPositionStream => _audioHandler.playbackState
.map((state) => state.bufferedPosition)
Expand Down Expand Up @@ -228,7 +228,7 @@ class MainScreen extends StatelessWidget {
class ControlButtons extends StatelessWidget {
final AudioPlayerHandler audioHandler;

const ControlButtons(this.audioHandler, {Key? key}) : super(key: key);
const ControlButtons(this.audioHandler, {super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions audio_service/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Future<void> main() async {
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -56,7 +56,7 @@ class MyApp extends StatelessWidget {
}

class MainScreen extends StatelessWidget {
const MainScreen({Key? key}) : super(key: key);
const MainScreen({super.key});

@override
Widget build(BuildContext context) {
Expand Down
7 changes: 3 additions & 4 deletions audio_service/lib/audio_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2400,11 +2400,10 @@ class IsolatedAudioHandler extends CompositeAudioHandler {
/// isolate is able to register another new handler with the same name before
/// this isolate can.
IsolatedAudioHandler(
AudioHandler inner, {
super.inner, {
this.portName = defaultPortName,
bool overridePortName = false,
}) : assert(!kIsWeb),
super(inner) {
}) : assert(!kIsWeb) {
_receivePort.listen((dynamic event) async {
final request = event as _IsolateRequest;
switch (request.method) {
Expand Down Expand Up @@ -4051,7 +4050,7 @@ class AudioServiceWidget extends StatelessWidget {
final Widget child;

/// Deprecated.
const AudioServiceWidget({Key? key, required this.child}) : super(key: key);
const AudioServiceWidget({super.key, required this.child});

@override
Widget build(BuildContext context) {
Expand Down

0 comments on commit 4ee4483

Please sign in to comment.