A customizable login and sign-up screen with beautiful animations for Flutter applications. This package provides an easy way to add a responsive and animated authentication UI to your Flutter app.
- Customizable login and sign-up forms.
- Beautiful staggered animations for loading and form transitions.
- Responsive design that works on different screen sizes.
- Customizable text fields and validation logic.
- Supports toggling between sign-in and sign-up modes.
- Password visibility toggles.
To use this package, add flutter_ui_auth
as a dependency in your pubspec.yaml
file:
dependencies:
flutter_ui_auth: ^1.0.0
Then, run the following command:
flutter pub get
Here’s a simple example of how to use the LoginScreen
widget in your app:
import 'package:flutter/material.dart';
import 'package:flutter_ui_auth/flutter_ui_auth.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: LoginScreen(
title: 'Welcome to MyApp',
subtitle: 'Login to continue',
onLogin: (email, password) {
// Handle login logic here
},
),
);
}
}
You can customize the look and feel of the login screen by passing different parameters to the LoginScreen
widget:
LoginScreen(
title: 'My Custom App',
subtitle: 'Sign in or register below',
onLogin: (email, password) {
// Your authentication logic here
},
// Add other customization options
)
LoginScreen
: The main screen widget that provides a sign-in and sign-up form with animated transitions.- Password visibility toggles and validation are included by default.
This package is actively maintained. If you encounter any issues or have feature requests, feel free to open an issue on GitHub.
Contributions are welcome! If you'd like to contribute, please submit a pull request or file an issue on the repository.
This project is licensed under the MIT License - see the LICENSE file for details.