flutter_animated_login 0.0.4 copy "flutter_animated_login: ^0.0.4" to clipboard
flutter_animated_login: ^0.0.4 copied to clipboard

A Flutter package to create a beautiful animated login screen with phone/email otp, password, and social login options. It also includes a phone number with country code picker.

Flutter Animated Login #

Pub Version GitHub Repo stars GitHub Repo forks GitHub Repo issues GitHub Repo contributors

A Flutter package to create a beautiful animated login screen with phone/email otp, password, and social login options. It also includes a phone number with country code picker.

Screenshots #

Email OTP #

Phone OTP #

Dark Theme #

Video Demo #

Installing #

To use this package run this command:

flutter pub add flutter_animated_login

Or, add the following to your pubspec.yaml file:

dependencies:
  flutter_animated_login: ^<latest_version>

Sometimes you may want to use the latest version of the package, instead of a published version. To do that, use the git syntax:

dependencies:
  flutter_animated_login:
    git:
      url: git://github.com/rvndsngwn/flutter_animated_login.git
      ref: main

How to Use #

Simply create a FlutterAnimatedLogin widget, and pass the required params:

FlutterAnimatedLogin(
    onLogin: (loginData) async {
        print(loginData);
        return "";
    },
)

See the example directory for a complete sample app.

Parameters of the FlutterAnimatedLogin #

  /// The callback triggered after login
  final LoginCallback? onLogin;

  /// The callback triggered after signup
  final SignupCallback? onSignup;

  /// [VerifyCallback] triggered after the user has verified the OTP
  /// The result is an error message, callback successes if message is null
  final VerifyCallback? onVerify;

  /// [ResendOtpCallback] triggered after the user has resent the OTP
  final ResendOtpCallback? onResendOtp;

  /// The configuration for the login text field
  final LoginConfig loginConfig;

  /// The list of login providers for the oauth
  final List<LoginProvider>? providers;

  /// The login type, default is [LoginType.loginWithOTP]
  final LoginType loginType;

  /// The configuration for the verify page
  final VerifyConfig verifyConfig;

  /// The terms and conditions for the login/signup page
  final TextSpan? termsAndConditions;

  /// [PageConfig] for the page widget to customize the page.
  final PageConfig config;

LICENSE #

This project is licensed under the MIT license. See LICENSE for more information.

You can help me by Donating #

BuyMeACoffee PayPal Ko-Fi

👨🏻‍💻 Contribute to the project #

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

GitHub

👨🏻‍💻Contributors #

Made with contrib.rocks.

7
likes
0
pub points
74%
popularity

Publisher

verified publishermohesu.com

A Flutter package to create a beautiful animated login screen with phone/email otp, password, and social login options. It also includes a phone number with country code picker.

Repository (GitHub)
View/report issues

Topics

#flutter-login #flutter-animated-login #flutter-login-screen #flutter-login-ui #animated-login

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, flutter_intl_phone_field, material_loading_buttons, pinput, toastification

More

Packages that depend on flutter_animated_login