Skip to content

Commit 4ee4483

Browse files
committed
Merge branch 'fix/lints' into minor
2 parents e5a1e4a + 163e68a commit 4ee4483

File tree

7 files changed

+21
-22
lines changed

7 files changed

+21
-22
lines changed

audio_service/example/lib/common.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ class SeekBar extends StatefulWidget {
2222
final ValueChanged<Duration>? onChangeEnd;
2323

2424
const SeekBar({
25-
Key? key,
25+
super.key,
2626
required this.duration,
2727
required this.position,
2828
this.bufferedPosition = Duration.zero,
2929
this.onChanged,
3030
this.onChangeEnd,
31-
}) : super(key: key);
31+
});
3232

3333
@override
3434
SeekBarState createState() => SeekBarState();
@@ -141,7 +141,7 @@ class HiddenThumbComponentShape extends SliderComponentShape {
141141
}
142142

143143
class LoggingAudioHandler extends CompositeAudioHandler {
144-
LoggingAudioHandler(AudioHandler inner) : super(inner) {
144+
LoggingAudioHandler(super.inner) {
145145
playbackState.listen((state) {
146146
_log('playbackState changed: $state');
147147
});

audio_service/example/lib/example_android13.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Future<void> main() async {
3737
}
3838

3939
class MyApp extends StatelessWidget {
40-
const MyApp({Key? key}) : super(key: key);
40+
const MyApp({super.key});
4141

4242
@override
4343
Widget build(BuildContext context) {
@@ -50,7 +50,7 @@ class MyApp extends StatelessWidget {
5050
}
5151

5252
class MainScreen extends StatelessWidget {
53-
const MainScreen({Key? key}) : super(key: key);
53+
const MainScreen({super.key});
5454

5555
@override
5656
Widget build(BuildContext context) {

audio_service/example/lib/example_android_songs.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Future<void> main() async {
8585
}
8686

8787
class MyApp extends StatelessWidget {
88-
const MyApp({Key? key}) : super(key: key);
88+
const MyApp({super.key});
8989

9090
@override
9191
Widget build(BuildContext context) {
@@ -98,7 +98,7 @@ class MyApp extends StatelessWidget {
9898
}
9999

100100
class MainScreen extends StatefulWidget {
101-
const MainScreen({Key? key}) : super(key: key);
101+
const MainScreen({super.key});
102102

103103
@override
104104
State<MainScreen> createState() => _MainScreenState();
@@ -225,7 +225,7 @@ class _MainScreenState extends State<MainScreen> {
225225
}
226226

227227
class SongListScreen extends StatelessWidget {
228-
const SongListScreen({Key? key}) : super(key: key);
228+
const SongListScreen({super.key});
229229

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

304304
class SongTile extends StatelessWidget {
305305
const SongTile({
306-
Key? key,
306+
super.key,
307307
required this.song,
308308
this.tappable = true,
309-
}) : super(key: key);
309+
});
310310

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

342342
final Song song;
343343

audio_service/example/lib/example_multiple_handlers.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Future<void> main() async {
5757

5858
/// The app widget
5959
class MyApp extends StatelessWidget {
60-
const MyApp({Key? key}) : super(key: key);
60+
const MyApp({super.key});
6161

6262
@override
6363
Widget build(BuildContext context) {
@@ -76,7 +76,7 @@ class MainScreen extends StatelessWidget {
7676
'Text-To-Speech',
7777
];
7878

79-
const MainScreen({Key? key}) : super(key: key);
79+
const MainScreen({super.key});
8080

8181
@override
8282
Widget build(BuildContext context) {

audio_service/example/lib/example_playlist.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Future<void> main() async {
3333

3434
/// The app widget
3535
class MyApp extends StatelessWidget {
36-
const MyApp({Key? key}) : super(key: key);
36+
const MyApp({super.key});
3737

3838
@override
3939
Widget build(BuildContext context) {
@@ -47,7 +47,7 @@ class MyApp extends StatelessWidget {
4747

4848
/// The main screen.
4949
class MainScreen extends StatelessWidget {
50-
const MainScreen({Key? key}) : super(key: key);
50+
const MainScreen({super.key});
5151

5252
Stream<Duration> get _bufferedPositionStream => _audioHandler.playbackState
5353
.map((state) => state.bufferedPosition)
@@ -228,7 +228,7 @@ class MainScreen extends StatelessWidget {
228228
class ControlButtons extends StatelessWidget {
229229
final AudioPlayerHandler audioHandler;
230230

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

233233
@override
234234
Widget build(BuildContext context) {

audio_service/example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Future<void> main() async {
4343
}
4444

4545
class MyApp extends StatelessWidget {
46-
const MyApp({Key? key}) : super(key: key);
46+
const MyApp({super.key});
4747

4848
@override
4949
Widget build(BuildContext context) {
@@ -56,7 +56,7 @@ class MyApp extends StatelessWidget {
5656
}
5757

5858
class MainScreen extends StatelessWidget {
59-
const MainScreen({Key? key}) : super(key: key);
59+
const MainScreen({super.key});
6060

6161
@override
6262
Widget build(BuildContext context) {

audio_service/lib/audio_service.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,11 +2400,10 @@ class IsolatedAudioHandler extends CompositeAudioHandler {
24002400
/// isolate is able to register another new handler with the same name before
24012401
/// this isolate can.
24022402
IsolatedAudioHandler(
2403-
AudioHandler inner, {
2403+
super.inner, {
24042404
this.portName = defaultPortName,
24052405
bool overridePortName = false,
2406-
}) : assert(!kIsWeb),
2407-
super(inner) {
2406+
}) : assert(!kIsWeb) {
24082407
_receivePort.listen((dynamic event) async {
24092408
final request = event as _IsolateRequest;
24102409
switch (request.method) {
@@ -4051,7 +4050,7 @@ class AudioServiceWidget extends StatelessWidget {
40514050
final Widget child;
40524051

40534052
/// Deprecated.
4054-
const AudioServiceWidget({Key? key, required this.child}) : super(key: key);
4053+
const AudioServiceWidget({super.key, required this.child});
40554054

40564055
@override
40574056
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)