Skip to content

Commit

Permalink
Merge pull request #188 from nate-thegrate/main
Browse files Browse the repository at this point in the history
Allow newer `flutter_lints` versions
  • Loading branch information
tadaspetra authored Apr 29, 2024
2 parents 4cf8315 + cf6062c commit 238e1dd
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 27 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.3.9
- Update to support newer lints

## 1.3.8
- Update types from agora_rtc_engine 6.3.0

Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ void main() {
}

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

@override
State<MyApp> createState() => _MyAppState();
Expand Down
2 changes: 1 addition & 1 deletion lib/models/agora_rtm_mute_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class AgoraUIKit {
String platform = platformStr();

String framework = "flutter";
String version = "1.3.8";
String version = "1.3.9";

AgoraUIKit.fromJson(Map<String, dynamic> json)
: platform = json['platform'],
Expand Down
4 changes: 2 additions & 2 deletions lib/src/buttons/buttons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AgoraVideoButtons extends StatefulWidget {
final bool? cloudRecordingEnabled;

const AgoraVideoButtons({
Key? key,
super.key,
required this.client,
this.enabledButtons,
this.extraButtons,
Expand All @@ -69,7 +69,7 @@ class AgoraVideoButtons extends StatefulWidget {
this.onDisconnect,
this.addScreenSharing = false,
this.cloudRecordingEnabled = false,
}) : super(key: key);
});

@override
State<AgoraVideoButtons> createState() => _AgoraVideoButtonsState();
Expand Down
7 changes: 3 additions & 4 deletions lib/src/buttons/cloud_recording_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class CloudRecordingButton extends StatelessWidget {
final Widget? child;
final AgoraClient client;
const CloudRecordingButton({
Key? key,
super.key,
required this.client,
this.child,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -26,8 +26,7 @@ class CloudRecordingButton extends StatelessWidget {

class RecordingStateButton extends StatelessWidget {
final AgoraClient client;
const RecordingStateButton({Key? key, required this.client})
: super(key: key);
const RecordingStateButton({super.key, required this.client});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/layout/floating_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class FloatingLayout extends StatefulWidget {
final bool? useAndroidSurfaceView;

const FloatingLayout({
Key? key,
super.key,
required this.client,
this.floatingLayoutContainerHeight,
this.floatingLayoutContainerWidth,
Expand All @@ -55,7 +55,7 @@ class FloatingLayout extends StatefulWidget {
this.renderModeType = RenderModeType.renderModeHidden,
this.useAndroidSurfaceView = false,
this.useFlutterTexture = false,
}) : super(key: key);
});

@override
State<FloatingLayout> createState() => _FloatingLayoutState();
Expand Down
7 changes: 3 additions & 4 deletions lib/src/layout/grid_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class GridLayout extends StatefulWidget {
final RenderModeType renderModeType;

const GridLayout({
Key? key,
super.key,
required this.client,
this.showNumberOfUsers,
this.disabledVideoWidget = const DisabledVideoWidget(),
this.renderModeType = RenderModeType.renderModeHidden,
}) : super(key: key);
});

@override
State<GridLayout> createState() => _GridLayoutState();
Expand Down Expand Up @@ -183,8 +183,7 @@ class _GridLayoutState extends State<GridLayout> {

class DisabledVideoStfWidget extends StatefulWidget {
final Widget? disabledVideoWidget;
const DisabledVideoStfWidget({Key? key, this.disabledVideoWidget})
: super(key: key);
const DisabledVideoStfWidget({super.key, this.disabledVideoWidget});

@override
State<DisabledVideoStfWidget> createState() => _DisabledVideoStfWidgetState();
Expand Down
4 changes: 2 additions & 2 deletions lib/src/layout/layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class AgoraVideoViewer extends StatefulWidget {
final RenderModeType renderModeType;

const AgoraVideoViewer({
Key? key,
super.key,
required this.client,
this.layoutType = Layout.grid,
this.floatingLayoutContainerHeight,
Expand All @@ -54,7 +54,7 @@ class AgoraVideoViewer extends StatefulWidget {
this.enableHostControls = false,
this.showNumberOfUsers = false,
this.renderModeType = RenderModeType.renderModeHidden,
}) : super(key: key);
});

@override
State<AgoraVideoViewer> createState() => _AgoraVideoViewerState();
Expand Down
4 changes: 2 additions & 2 deletions lib/src/layout/one_to_one_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ class OneToOneLayout extends StatefulWidget {
final RenderModeType? renderModeType;

const OneToOneLayout({
Key? key,
super.key,
required this.client,
this.disabledVideoWidget = const DisabledVideoWidget(),
this.showAVState,
this.enableHostControl,
this.renderModeType = RenderModeType.renderModeHidden,
}) : super(key: key);
});

@override
State<OneToOneLayout> createState() => _OneToOneLayoutState();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/layout/widgets/disabled_video_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';

/// Widget that is displayed when local/remote video is disabled.
class DisabledVideoWidget extends StatefulWidget {
const DisabledVideoWidget({Key? key}) : super(key: key);
const DisabledVideoWidget({super.key});

@override
State<DisabledVideoWidget> createState() => _DisabledVideoWidgetState();
Expand Down
4 changes: 2 additions & 2 deletions lib/src/layout/widgets/host_controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ class HostControls extends StatefulWidget {
final int index;

const HostControls({
Key? key,
super.key,
required this.videoDisabled,
required this.muted,
required this.client,
required this.index,
}) : super(key: key);
});

@override
State<HostControls> createState() => _HostControlsState();
Expand Down
4 changes: 2 additions & 2 deletions lib/src/layout/widgets/number_of_users.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ class NumberOfUsers extends StatefulWidget {
final int userCount;

const NumberOfUsers({
Key? key,
super.key,
this.userCount = 0,
}) : super(key: key);
});

@override
State<NumberOfUsers> createState() => _NumberOfUsersState();
Expand Down
4 changes: 2 additions & 2 deletions lib/src/layout/widgets/user_av_state_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ class UserAVStateWidget extends StatefulWidget {
final bool muted;

const UserAVStateWidget({
Key? key,
super.key,
required this.videoDisabled,
required this.muted,
}) : super(key: key);
});

@override
State<UserAVStateWidget> createState() => _UserAVStateWidgetState();
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: agora_uikit
description: Flutter plugin to simply integrate Agora Video Calling or Live
Video Streaming to your app with just a few lines of code.
version: 1.3.8
version: 1.3.9
homepage: https://www.agora.io/en/
repository: https://github.com/AgoraIO-Community/VideoUIKit-Flutter

Expand All @@ -15,7 +15,7 @@ dependencies:
flutter:
sdk: flutter
http: ">=0.13.1 <2.0.0"
lints: ">=1.0.1 <2.1.2"
lints: ">=1.0.1"
permission_handler: ^11.0.0

dev_dependencies:
Expand Down

0 comments on commit 238e1dd

Please sign in to comment.