amplify_authenticator
2.7.3, released 5 weeks ago by aws-amplify.com
Prebuilt, customizable sign‑in/sign‑up UI for Amplify Auth in Flutter.
What it does
Provides an Authenticator widget that handles the full authentication flow, including sign‑in, sign‑up, password reset, and social sign‑in. It manages session state and offers built‑in autofill support.
AI-written summary of version 2.7.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a ready‑made authentication UI for Amplify Cognito
- You want to reduce boilerplate for auth flows in a Flutter app
- You require cross‑platform support (mobile, web, desktop)
Skip it when
- You need a completely custom UI design beyond the provided customization options
- You are not using Amplify as your backend
Strengths
- Zero‑code auth flow integration
- Cross‑platform out of the box
- Built‑in autofill and accessibility support
- Handles session management automatically
Weaknesses
- Tied to Amplify backend only
- Limited to the styling/customization offered by the package
- May add bundle size overhead
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 16
Add amplify_auth_cognito, amplify_flutter and amplify_authenticator to pubspec, call Amplify.addPlugin(AmplifyAuthCognito()) and Amplify.configure() before using Authenticator widget.
import 'package:amplify_authenticator/amplify_authenticator.dart';
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Authenticator(
child: MaterialApp(
builder: Authenticator.builder(),
home: const Scaffold(body: Center(child: Text('Logged In'))),
),
);
}
}Alternatives
Packages that do the same job and could replace amplify_authenticator.
- firebase_auth
When using Firebase as the backend instead of Amplify
99Compare - google_sign_in
For simple Google sign‑in without the full Amplify stack
84Compare
Works with
Packages commonly used together with amplify_authenticator: ones it builds on, ones built on it, and its own family.
- asyncamplify_authenticator depends on itUtility classes and helpers that extend Dart's async library.
- intlamplify_authenticator depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- url_launcheramplify_authenticator depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- stream_transformamplify_authenticator depends on itExtension methods adding common stream transform operators
- package_info_plusamplify_authenticator depends on itFlutter plugin to query app package info like version, build number and installer store.
- qr_flutteramplify_authenticator depends on itFlutter widget for rendering QR codes with customizable size, colors, and optional embedded images.
- phone_numbers_parseramplify_authenticator depends on itDart library for parsing, validating, and formatting international phone numbers.
- amplify_coreamplify_authenticator depends on itBase package containing common types and utilities for AWS Amplify Flutter packages.