deps(mobile): flutter 3.16 (#6677)

* dep(mobile): update flutter and deps

* chore: dart analyzer

* chore: update flutter workflow version

* chore: dart format

* fix: gallery_viewer PopScope

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2024-01-27 16:14:32 +00:00
committed by GitHub
parent 0522058fdf
commit 27488ceb67
116 changed files with 627 additions and 624 deletions

View File

@@ -63,7 +63,7 @@ class AuthenticationNotifier extends StateNotifier<AuthenticationState> {
if (Platform.isIOS) {
var iosInfo = await deviceInfoPlugin.iosInfo;
_apiService.authenticationApi.apiClient
.addDefaultHeader('deviceModel', iosInfo.utsname.machine ?? '');
.addDefaultHeader('deviceModel', iosInfo.utsname.machine);
_apiService.authenticationApi.apiClient
.addDefaultHeader('deviceType', 'iOS');
} else {

View File

@@ -13,7 +13,7 @@ import 'package:immich_mobile/shared/providers/websocket.provider.dart';
import 'package:immich_mobile/shared/ui/immich_toast.dart';
class ChangePasswordForm extends HookConsumerWidget {
const ChangePasswordForm({Key? key}) : super(key: key);
const ChangePasswordForm({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {
@@ -128,7 +128,7 @@ class ChangePasswordForm extends HookConsumerWidget {
class PasswordInput extends StatelessWidget {
final TextEditingController controller;
const PasswordInput({Key? key, required this.controller}) : super(key: key);
const PasswordInput({super.key, required this.controller});
@override
Widget build(BuildContext context) {
@@ -149,10 +149,10 @@ class ConfirmPasswordInput extends StatelessWidget {
final TextEditingController confirmController;
const ConfirmPasswordInput({
Key? key,
super.key,
required this.originalController,
required this.confirmController,
}) : super(key: key);
});
String? _validateInput(String? email) {
if (confirmController.value != originalController.value) {
@@ -181,10 +181,10 @@ class ChangePasswordButton extends ConsumerWidget {
final TextEditingController passwordController;
final VoidCallback onPressed;
const ChangePasswordButton({
Key? key,
super.key,
required this.passwordController,
required this.onPressed,
}) : super(key: key);
});
@override
Widget build(BuildContext context, WidgetRef ref) {

View File

@@ -22,7 +22,7 @@ import 'package:openapi/api.dart';
import 'package:permission_handler/permission_handler.dart';
class LoginForm extends HookConsumerWidget {
const LoginForm({Key? key}) : super(key: key);
const LoginForm({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {
@@ -426,11 +426,11 @@ class ServerEndpointInput extends StatelessWidget {
final Function()? onSubmit;
const ServerEndpointInput({
Key? key,
super.key,
required this.controller,
required this.focusNode,
this.onSubmit,
}) : super(key: key);
});
String? _validateInput(String? url) {
if (url == null || url.isEmpty) return null;
@@ -474,11 +474,11 @@ class EmailInput extends StatelessWidget {
final Function()? onSubmit;
const EmailInput({
Key? key,
super.key,
required this.controller,
this.focusNode,
this.onSubmit,
}) : super(key: key);
});
String? _validateInput(String? email) {
if (email == null || email == '') return null;
@@ -521,11 +521,11 @@ class PasswordInput extends StatelessWidget {
final Function()? onSubmit;
const PasswordInput({
Key? key,
super.key,
required this.controller,
this.focusNode,
this.onSubmit,
}) : super(key: key);
});
@override
Widget build(BuildContext context) {
@@ -554,9 +554,9 @@ class LoginButton extends ConsumerWidget {
final Function() onPressed;
const LoginButton({
Key? key,
super.key,
required this.onPressed,
}) : super(key: key);
});
@override
Widget build(BuildContext context, WidgetRef ref) {
@@ -581,12 +581,12 @@ class OAuthLoginButton extends ConsumerWidget {
final Function() onPressed;
const OAuthLoginButton({
Key? key,
super.key,
required this.serverEndpointController,
required this.isLoading,
required this.buttonLabel,
required this.onPressed,
}) : super(key: key);
});
@override
Widget build(BuildContext context, WidgetRef ref) {
@@ -606,7 +606,7 @@ class OAuthLoginButton extends ConsumerWidget {
}
class LoadingIcon extends StatelessWidget {
const LoadingIcon({Key? key}) : super(key: key);
const LoadingIcon({super.key});
@override
Widget build(BuildContext context) {

View File

@@ -5,7 +5,7 @@ import 'package:immich_mobile/modules/login/ui/change_password_form.dart';
@RoutePage()
class ChangePasswordPage extends HookConsumerWidget {
const ChangePasswordPage({Key? key}) : super(key: key);
const ChangePasswordPage({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {

View File

@@ -9,7 +9,7 @@ import 'package:package_info_plus/package_info_plus.dart';
@RoutePage()
class LoginPage extends HookConsumerWidget {
const LoginPage({Key? key}) : super(key: key);
const LoginPage({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {