amplify_flutter
2.16.0, released 5 weeks ago by aws-amplify.com
Flutter SDK for AWS Amplify services like Auth, API, Storage, and Analytics.
What it does
Provides a unified interface to interact with AWS Amplify backend services from Flutter apps. Supports authentication, data APIs (REST/GraphQL), file storage, analytics, and push notifications across mobile, web, and desktop platforms.
AI-written summary of version 2.16.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to integrate multiple AWS services (Auth, API, Storage, Analytics) in a Flutter app
- Cross‑platform support (iOS, Android, Web, Windows, macOS, Linux) is required
- You prefer a single package that abstracts AWS Amplify functionality
Skip it when
- You only need a lightweight, single‑service client (e.g., only Auth) and want a smaller dependency footprint
- Your project targets platforms not listed as supported (e.g., embedded devices)
Strengths
- Comprehensive coverage of AWS Amplify features
- Consistent API across all supported platforms
- Active maintenance and frequent updates
Weaknesses
- Large package size due to many bundled services
- Requires native setup for each platform (e.g., AWS credentials, platform‑specific config)
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 5
Add Amplify plugins (e.g., Auth, Storage) in native code, configure AWS resources, and call Amplify.configure() before use. May need platform‑specific permissions (e.g., internet, push notifications).
import 'package:amplify_flutter/amplify.dart';
import 'package:amplify_auth_cognito/amplify_auth_cognito.dart';
Future<void> main() async {
await Amplify.addPlugin(AmplifyAuthCognito());
await Amplify.configure('''{...your amplifyconfiguration JSON...}''');
// Sign in example
final result = await Amplify.Auth.signIn(username: 'user', password: 'pass');
}
Works with
Packages commonly used together with amplify_flutter: ones it builds on, ones built on it, and its own family.
- amplify_coreamplify_flutter depends on itBase package containing common types and utilities for AWS Amplify Flutter packages.
- amplify_analytics_pinpointSame familyAWS Pinpoint analytics plugin for Flutter
- amplify_api_dartSame familyDart-only Amplify API plugin for GraphQL and REST.
- amplify_storage_s3Same familyAWS S3 storage plugin for Flutter via Amplify
- amplify_datastoreSame familyAmplify Flutter DataStore plugin for queryable on-device data storage
- amplify_auth_cognitoBuilt on amplify_flutterAmplify Flutter Auth plugin for AWS Cognito
- amplify_authenticatorBuilt on amplify_flutterPrebuilt, customizable sign‑in/sign‑up UI for Amplify Auth in Flutter.
- amplify_apiBuilt on amplify_flutterAmplify Flutter API plugin supporting GraphQL and REST operations.