Skip to content

Commit

Permalink
Increase the minimum Flutter version to 3.3 (flutter-tizen#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-kim authored May 24, 2023
1 parent 14ab39a commit a3cd3da
Show file tree
Hide file tree
Showing 177 changed files with 529 additions and 448 deletions.
4 changes: 4 additions & 0 deletions packages/audioplayers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## NEXT

* Increase the minimum Flutter version to 3.3.

## 2.0.0

* Add audioplayers_platform_interface dependency and update method calls.
Expand Down
3 changes: 1 addition & 2 deletions packages/audioplayers/example/lib/components/btn.dart
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';

class Tabs extends StatelessWidget {
final Map<String, Widget> 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
10 changes: 5 additions & 5 deletions packages/audioplayers/example/lib/components/tgl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ 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) {
return ToggleButtons(
isSelected: options.asMap().keys.map((it) => it == selected).toList(),
onPressed: onChange,
children: options.map((it) => Text(it)).toList(),
children: options.map(Text.new).toList(),
);
}
}
Expand All @@ -28,11 +28,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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:audioplayers_tizen_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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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
8 changes: 4 additions & 4 deletions packages/audioplayers/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: audioplayers_tizen_example
description: Demonstrates how to use the audioplayers plugin.
publish_to: "none"

environment:
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"

dependencies:
audioplayers: ^1.0.1
audioplayers_tizen:
Expand Down Expand Up @@ -29,7 +33,3 @@ flutter:
uses-material-design: true
assets:
- assets/

environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
8 changes: 4 additions & 4 deletions packages/audioplayers/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ homepage: https://github.com/flutter-tizen/plugins
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/audioplayers
version: 2.0.0

environment:
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"

flutter:
plugin:
platforms:
Expand All @@ -18,7 +22,3 @@ dependencies:

dev_dependencies:
flame_lint: ^0.1.0

environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
4 changes: 4 additions & 0 deletions packages/battery_plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## NEXT

* Increase the minimum Flutter version to 3.3.

## 1.1.1

* Hold memory of StreamHandlerError's member to prevent crash.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// @dart=2.9

import 'package:battery_plus/battery_plus.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down
8 changes: 4 additions & 4 deletions packages/battery_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: battery_plus_example
description: Demonstrates how to use the battery_plus plugin.
publish_to: "none"

environment:
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"

dependencies:
battery_plus: ^2.1.3
battery_plus_tizen:
Expand All @@ -22,7 +26,3 @@ dev_dependencies:

flutter:
uses-material-design: true

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.2.0"
10 changes: 5 additions & 5 deletions packages/battery_plus/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: battery_plus_tizen
description: Tizen implementation of the battery_plus plugin
description: Tizen implementation of the battery_plus plugin.
homepage: https://github.com/flutter-tizen/plugins
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/battery_plus
version: 1.1.1

environment:
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"

flutter:
plugin:
platforms:
Expand All @@ -18,7 +22,3 @@ dependencies:

dev_dependencies:
flutter_lints: ^1.0.4

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
4 changes: 4 additions & 0 deletions packages/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## NEXT

* Increase the minimum Flutter version to 3.3.

## 0.3.4

* Switch to an internal method channel implementation.
Expand Down
4 changes: 2 additions & 2 deletions packages/camera/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import 'package:video_player/video_player.dart';
/// Camera example home widget.
class CameraExampleHome extends StatefulWidget {
/// Default Constructor
const CameraExampleHome({Key? key}) : super(key: key);
const CameraExampleHome({super.key});

@override
State<CameraExampleHome> createState() {
Expand Down Expand Up @@ -1052,7 +1052,7 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
/// CameraApp is the Main Application.
class CameraApp extends StatelessWidget {
/// Default Constructor
const CameraApp({Key? key}) : super(key: key);
const CameraApp({super.key});

@override
Widget build(BuildContext context) {
Expand Down
8 changes: 4 additions & 4 deletions packages/camera/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: camera_example
description: Demonstrates how to use the camera plugin.
publish_to: "none"

environment:
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"

dependencies:
camera: ^0.9.4
camera_tizen:
Expand All @@ -25,7 +29,3 @@ dev_dependencies:

flutter:
uses-material-design: true

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
8 changes: 4 additions & 4 deletions packages/camera/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ homepage: https://github.com/flutter-tizen/plugins
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/camera
version: 0.3.4

environment:
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"

dependencies:
camera_platform_interface: ^2.1.1
flutter:
Expand All @@ -17,7 +21,3 @@ flutter:
pluginClass: CameraPlugin
fileName: camera_plugin.h
dartPluginClass: CameraTizen

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
4 changes: 4 additions & 0 deletions packages/connectivity_plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## NEXT

* Increase the minimum Flutter version to 3.3.

## 1.1.2

* Hold memory of StreamHandlerError's member to prevent crash.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//@dart=2.9

// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Expand All @@ -12,7 +10,7 @@ void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

group('Connectivity test driver', () {
Connectivity _connectivity;
late Connectivity _connectivity;

setUpAll(() async {
_connectivity = Connectivity();
Expand Down
8 changes: 4 additions & 4 deletions packages/connectivity_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: connectivity_plus_example
description: Demonstrates how to use the connectivity_plus_tizen plugin.
publish_to: "none"

environment:
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"

dependencies:
connectivity_plus: ^2.3.0
connectivity_plus_tizen:
Expand All @@ -22,7 +26,3 @@ dev_dependencies:

flutter:
uses-material-design: true

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.2.0"
Loading

0 comments on commit a3cd3da

Please sign in to comment.