mirror of
https://github.com/Iconica-Development/flutter_login_widget.git
synced 2025-05-19 13:43:44 +02:00
chore: update iconica linter
This commit is contained in:
parent
d173ba11fc
commit
5276f38643
11 changed files with 66 additions and 65 deletions
|
@ -1,3 +1,6 @@
|
|||
## 7.2.0
|
||||
* Updated flutter_iconica_analysis to 7.0.0 with new rules
|
||||
|
||||
## 7.1.3
|
||||
|
||||
* Fixed forgotpassword description line height.
|
||||
|
|
|
@ -37,10 +37,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: collection
|
||||
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
|
||||
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.18.0"
|
||||
version: "1.19.0"
|
||||
fake_async:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -68,7 +68,7 @@ packages:
|
|||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "7.1.0"
|
||||
version: "7.1.3"
|
||||
flutter_test:
|
||||
dependency: "direct dev"
|
||||
description: flutter
|
||||
|
@ -83,18 +83,18 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: leak_tracker
|
||||
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
|
||||
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "10.0.4"
|
||||
version: "10.0.7"
|
||||
leak_tracker_flutter_testing:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: leak_tracker_flutter_testing
|
||||
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
|
||||
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.0.3"
|
||||
version: "3.0.8"
|
||||
leak_tracker_testing:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -123,18 +123,18 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: material_color_utilities
|
||||
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
|
||||
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.8.0"
|
||||
version: "0.11.1"
|
||||
meta:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: meta
|
||||
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
|
||||
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.12.0"
|
||||
version: "1.15.0"
|
||||
path:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -176,10 +176,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: stack_trace
|
||||
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
|
||||
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.11.1"
|
||||
version: "1.12.0"
|
||||
stream_channel:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -192,10 +192,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: string_scanner
|
||||
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
|
||||
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.2.0"
|
||||
version: "1.3.0"
|
||||
term_glyph:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -208,10 +208,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: test_api
|
||||
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
|
||||
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.7.0"
|
||||
version: "0.7.3"
|
||||
universal_platform:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -232,10 +232,10 @@ packages:
|
|||
dependency: transitive
|
||||
description:
|
||||
name: vm_service
|
||||
sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
|
||||
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "14.2.1"
|
||||
version: "14.3.0"
|
||||
sdks:
|
||||
dart: ">=3.3.0 <4.0.0"
|
||||
dart: ">=3.4.0 <4.0.0"
|
||||
flutter: ">=3.18.0-18.0.pre.54"
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
///
|
||||
library flutter_login;
|
||||
|
||||
export 'src/config/forgot_password_spacer_options.dart';
|
||||
export 'src/config/login_options.dart';
|
||||
export 'src/config/spacer_options.dart';
|
||||
export 'src/service/login_validation.dart';
|
||||
export 'src/service/validation.dart';
|
||||
export 'src/widgets/email_password_login.dart';
|
||||
export 'src/widgets/forgot_password_form.dart';
|
||||
export 'src/widgets/mfa_widget.dart';
|
||||
export "src/config/forgot_password_spacer_options.dart";
|
||||
export "src/config/login_options.dart";
|
||||
export "src/config/spacer_options.dart";
|
||||
export "src/service/login_validation.dart";
|
||||
export "src/service/validation.dart";
|
||||
export "src/widgets/email_password_login.dart";
|
||||
export "src/widgets/forgot_password_form.dart";
|
||||
export "src/widgets/mfa_widget.dart";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import "package:flutter/material.dart";
|
||||
|
||||
@immutable
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import 'dart:async';
|
||||
import "dart:async";
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_login/src/config/forgot_password_spacer_options.dart';
|
||||
import 'package:flutter_login/src/config/spacer_options.dart';
|
||||
import 'package:flutter_login/src/service/login_validation.dart';
|
||||
import 'package:flutter_login/src/service/validation.dart';
|
||||
import "package:flutter/material.dart";
|
||||
import "package:flutter_login/src/config/forgot_password_spacer_options.dart";
|
||||
import "package:flutter_login/src/config/spacer_options.dart";
|
||||
import "package:flutter_login/src/service/login_validation.dart";
|
||||
import "package:flutter_login/src/service/validation.dart";
|
||||
|
||||
@immutable
|
||||
class LoginOptions {
|
||||
|
@ -17,7 +17,7 @@ class LoginOptions {
|
|||
this.passwordTextAlign,
|
||||
this.emailDecoration = const InputDecoration(
|
||||
contentPadding: EdgeInsets.symmetric(horizontal: 8),
|
||||
labelText: 'Email address',
|
||||
labelText: "Email address",
|
||||
border: OutlineInputBorder(),
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
|
@ -32,7 +32,7 @@ class LoginOptions {
|
|||
),
|
||||
this.passwordDecoration = const InputDecoration(
|
||||
contentPadding: EdgeInsets.symmetric(horizontal: 8),
|
||||
labelText: 'Password',
|
||||
labelText: "Password",
|
||||
border: OutlineInputBorder(),
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
|
@ -45,8 +45,8 @@ class LoginOptions {
|
|||
fontSize: 16,
|
||||
),
|
||||
),
|
||||
this.initialEmail = '',
|
||||
this.initialPassword = '',
|
||||
this.initialEmail = "",
|
||||
this.initialPassword = "",
|
||||
this.spacers = const LoginSpacerOptions(
|
||||
spacerBeforeTitle: 8,
|
||||
spacerAfterTitle: 2,
|
||||
|
@ -161,13 +161,13 @@ class LoginOptions {
|
|||
|
||||
class LoginTranslations {
|
||||
const LoginTranslations({
|
||||
this.emailEmpty = 'Please enter your email address',
|
||||
this.passwordEmpty = 'Please enter your password',
|
||||
this.emailInvalid = 'Please enter a valid email address',
|
||||
this.loginButton = 'Log in',
|
||||
this.forgotPasswordButton = 'Forgot password?',
|
||||
this.requestForgotPasswordButton = 'Send link',
|
||||
this.registrationButton = 'Create account',
|
||||
this.emailEmpty = "Please enter your email address",
|
||||
this.passwordEmpty = "Please enter your password",
|
||||
this.emailInvalid = "Please enter a valid email address",
|
||||
this.loginButton = "Log in",
|
||||
this.forgotPasswordButton = "Forgot password?",
|
||||
this.requestForgotPasswordButton = "Send link",
|
||||
this.registrationButton = "Create account",
|
||||
});
|
||||
|
||||
final String emailInvalid;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import "package:flutter/material.dart";
|
||||
|
||||
@immutable
|
||||
class LoginSpacerOptions {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:flutter_login/flutter_login.dart';
|
||||
import "package:flutter_login/flutter_login.dart";
|
||||
|
||||
class LoginValidationService implements ValidationService {
|
||||
const LoginValidationService(this.options);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
import "dart:async";
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_login/flutter_login.dart';
|
||||
import "package:flutter/material.dart";
|
||||
import "package:flutter_login/flutter_login.dart";
|
||||
|
||||
class EmailPasswordLoginForm extends StatefulWidget {
|
||||
/// Constructs an [EmailPasswordLoginForm] widget.
|
||||
|
@ -45,8 +45,8 @@ class _EmailPasswordLoginFormState extends State<EmailPasswordLoginForm> {
|
|||
final ValueNotifier<bool> _formValid = ValueNotifier(false);
|
||||
bool _obscurePassword = true;
|
||||
|
||||
String _currentEmail = '';
|
||||
String _currentPassword = '';
|
||||
String _currentEmail = "";
|
||||
String _currentPassword = "";
|
||||
|
||||
void _updateCurrentEmail(String email) {
|
||||
_currentEmail = email;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
import "dart:async";
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_login/flutter_login.dart';
|
||||
import "package:flutter/material.dart";
|
||||
import "package:flutter_login/flutter_login.dart";
|
||||
|
||||
class ForgotPasswordForm extends StatefulWidget {
|
||||
/// Constructs a [ForgotPasswordForm] widget.
|
||||
|
@ -49,7 +49,7 @@ class _ForgotPasswordFormState extends State<ForgotPasswordForm> {
|
|||
|
||||
final ValueNotifier<bool> _formValid = ValueNotifier(false);
|
||||
|
||||
String _currentEmail = '';
|
||||
String _currentEmail = "";
|
||||
|
||||
void _updateCurrentEmail(String email) {
|
||||
_currentEmail = email;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:pinput/pinput.dart';
|
||||
import "package:flutter/material.dart";
|
||||
import "package:pinput/pinput.dart";
|
||||
|
||||
class MFAWidget extends StatefulWidget {
|
||||
/// Constructs an [MFAWidget].
|
||||
|
@ -39,8 +39,8 @@ class MFAWidget extends StatefulWidget {
|
|||
}) : assert(
|
||||
(onSubmitted == null && submitButtonBuilder == null) ||
|
||||
(onSubmitted != null && submitButtonBuilder != null),
|
||||
'onSubmitted and submitButtonBuilder must be both null or both'
|
||||
' not null',
|
||||
"onSubmitted and submitButtonBuilder must be both null or both"
|
||||
" not null",
|
||||
);
|
||||
|
||||
/// Callback function triggered when the MFA code is completed.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: flutter_login
|
||||
description: Flutter Login Component
|
||||
version: 7.1.3
|
||||
version: 7.2.0
|
||||
|
||||
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||
|
||||
|
@ -19,6 +19,4 @@ dev_dependencies:
|
|||
flutter_iconica_analysis:
|
||||
git:
|
||||
url: https://github.com/Iconica-Development/flutter_iconica_analysis
|
||||
ref: 6.0.0
|
||||
|
||||
flutter:
|
||||
ref: 7.0.0
|
||||
|
|
Loading…
Reference in a new issue