Skip to content
pubscout

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.

WASM-readyRock solid
$ flutter pub add amplify_authenticator
Source repository

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.

Works with

Packages commonly used together with amplify_authenticator: ones it builds on, ones built on it, and its own family.