Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade Flutter to v3.0.0 and Dart 2.17 in example #1355

Merged
merged 2 commits into from Dec 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/audioplayers/example/lib/components/btn.dart
Expand Up @@ -4,8 +4,7 @@ class Btn extends StatelessWidget {
final String txt;
final VoidCallback onPressed;

const Btn({Key? key, required this.txt, required this.onPressed})
: super(key: key);
const Btn({super.key, required this.txt, required this.onPressed});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions packages/audioplayers/example/lib/components/cbx.dart
Expand Up @@ -9,8 +9,8 @@ class Cbx extends StatelessWidget {
this.label,
this.value,
this.update, {
Key? key,
}) : super(key: key);
super.key,
});

@override
Widget build(BuildContext context) {
Expand Down
8 changes: 4 additions & 4 deletions packages/audioplayers/example/lib/components/dlg.dart
Expand Up @@ -5,10 +5,10 @@ class SimpleDlg extends StatelessWidget {
final String message, action;

const SimpleDlg({
Key? key,
super.key,
required this.message,
required this.action,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -28,9 +28,9 @@ class Dlg extends StatelessWidget {
final List<Widget> children;

const Dlg({
Key? key,
super.key,
required this.children,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion packages/audioplayers/example/lib/components/pad.dart
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
class Pad extends StatelessWidget {
final double width, height;

const Pad({Key? key, this.width = 0, this.height = 0}) : super(key: key);
const Pad({super.key, this.width = 0, this.height = 0});

@override
Widget build(BuildContext context) {
Expand Down
Expand Up @@ -7,9 +7,9 @@ class PlayerWidget extends StatefulWidget {
final AudioPlayer player;

const PlayerWidget({
Key? key,
super.key,
required this.player,
}) : super(key: key);
});

@override
State<StatefulWidget> createState() {
Expand Down
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
class TabWrapper extends StatelessWidget {
final List<Widget> children;

const TabWrapper({Key? key, required this.children}) : super(key: key);
const TabWrapper({super.key, required this.children});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion packages/audioplayers/example/lib/components/tabs.dart
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
class Tabs extends StatelessWidget {
final List<TabData> tabs;

const Tabs({Key? key, required this.tabs}) : super(key: key);
const Tabs({super.key, required this.tabs});

@override
Widget build(BuildContext context) {
Expand Down
8 changes: 4 additions & 4 deletions packages/audioplayers/example/lib/components/tgl.dart
Expand Up @@ -7,11 +7,11 @@ class Tgl extends StatelessWidget {
final void Function(int) onChange;

const Tgl({
Key? key,
super.key,
required this.options,
required this.selected,
required this.onChange,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -38,11 +38,11 @@ class EnumTgl<T extends Enum> extends StatelessWidget {
final void Function(T) onChange;

const EnumTgl({
Key? key,
super.key,
required this.options,
required this.selected,
required this.onChange,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions packages/audioplayers/example/lib/components/txt.dart
Expand Up @@ -4,10 +4,10 @@ class TxtBox extends StatefulWidget {
final String value;
final void Function(String) onChange;
const TxtBox({
Key? key,
super.key,
required this.value,
required this.onChange,
}) : super(key: key);
});

@override
State<TxtBox> createState() => _TxtBoxState();
Expand Down
2 changes: 1 addition & 1 deletion packages/audioplayers/example/lib/main.dart
Expand Up @@ -18,7 +18,7 @@ void main() {
}

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

@override
_ExampleAppState createState() => _ExampleAppState();
Expand Down
2 changes: 1 addition & 1 deletion packages/audioplayers/example/lib/tabs/audio_context.dart
Expand Up @@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
class AudioContextTab extends StatefulWidget {
final AudioPlayer player;

const AudioContextTab({Key? key, required this.player}) : super(key: key);
const AudioContextTab({super.key, required this.player});

@override
_AudioContextTabState createState() => _AudioContextTabState();
Expand Down
2 changes: 1 addition & 1 deletion packages/audioplayers/example/lib/tabs/controls.dart
Expand Up @@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
class ControlsTab extends StatefulWidget {
final AudioPlayer player;

const ControlsTab({Key? key, required this.player}) : super(key: key);
const ControlsTab({super.key, required this.player});

@override
State<ControlsTab> createState() => _ControlsTabState();
Expand Down
2 changes: 1 addition & 1 deletion packages/audioplayers/example/lib/tabs/logger.dart
Expand Up @@ -4,7 +4,7 @@ import 'package:audioplayers_example/components/tab_wrapper.dart';
import 'package:flutter/material.dart';

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

@override
_LoggerTabState createState() => _LoggerTabState();
Expand Down
2 changes: 1 addition & 1 deletion packages/audioplayers/example/lib/tabs/sources.dart
Expand Up @@ -30,7 +30,7 @@ const _asset2 = 'nasa_on_a_mission.mp3';
class SourcesTab extends StatefulWidget {
final AudioPlayer player;

const SourcesTab({Key? key, required this.player}) : super(key: key);
const SourcesTab({super.key, required this.player});

@override
State<SourcesTab> createState() => _SourcesTabState();
Expand Down
2 changes: 1 addition & 1 deletion packages/audioplayers/example/lib/tabs/streams.dart
Expand Up @@ -10,7 +10,7 @@ import 'package:flutter/material.dart';
class StreamsTab extends StatefulWidget {
final AudioPlayer player;

const StreamsTab({Key? key, required this.player}) : super(key: key);
const StreamsTab({super.key, required this.player});

@override
State<StreamsTab> createState() => _StreamsTabState();
Expand Down
4 changes: 2 additions & 2 deletions packages/audioplayers/example/pubspec.yaml
Expand Up @@ -24,5 +24,5 @@ flutter:
- assets/

environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
sdk: ">=2.17.0 <3.0.0"
flutter: ">=3.0.0"