serverpod_auth_shared_flutter
4.1.2, released 7 days ago by serverpod.dev
Shared Flutter widgets for Serverpod authentication, including passwordless OTP and social logins.
What it does
Provides ready‑made UI components that handle authentication flows with Serverpod, such as OTP login, social sign‑in, and biometric prompts. It wraps image picking and cropping for profile pictures.
AI-written summary of version 4.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a quick, Serverpod‑centric authentication UI
- You want passwordless OTP login out of the box
- You need social sign‑in widgets that integrate with Serverpod
Skip it when
- You are building a custom authentication flow from scratch
- You are using a different backend or auth provider
Strengths
- Fast to integrate with Serverpod
- Includes passwordless OTP and social login widgets
- Handles image picking and cropping for profile pictures
Weaknesses
- Tied to Serverpod; not usable with other backends
- Limited customization beyond provided widgets
- Relies on several third‑party image packages
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 8
Add dependency to pubspec, import the package, no build_runner needed.
// Example usage
import 'package:serverpod_auth_shared_flutter/serverpod_auth_shared_flutter.dart';
AuthWidget(),Alternatives
Packages that do the same job and could replace serverpod_auth_shared_flutter.
- google_sign_in
Provides Google sign‑in for any backend
84Compare - firebase_auth
Full‑featured Firebase auth with many providers
99Compare - local_auth
Biometric authentication without network
90Compare
Works with
Packages commonly used together with serverpod_auth_shared_flutter: ones it builds on, ones built on it, and its own family.
- imageserverpod_auth_shared_flutter depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- shared_preferencesserverpod_auth_shared_flutter depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- image_pickerserverpod_auth_shared_flutter depends on itFlutter plugin for selecting images/videos from the gallery and capturing new ones via camera.
- file_pickerserverpod_auth_shared_flutter depends on itUse the native file explorer to pick single or multiple files, directories, and save files.
- cached_network_imageserverpod_auth_shared_flutter depends on itLoad and cache network images in Flutter with placeholder and error widget support.
- image_cropperserverpod_auth_shared_flutter depends on itA Flutter plugin for Android, iOS and Web supports cropping images
- serverpod_clientserverpod_auth_shared_flutter depends on itBase classes for communicating with a Serverpod backend via HTTP and WebSocket
- serverpod_auth_clientserverpod_auth_shared_flutter depends on itClient authentication library for Serverpod backends.