clerk_flutter
0.0.18-beta, released 4 months ago by clerk.com
Community-maintained Clerk SDK for user authentication and management in Flutter.
What it does
Allows Flutter applications to authenticate users and manage profiles using Clerk. Provides widgets and utilities for sign-up, sign-in, and handling authentication states.
AI-written summary of version 0.0.18-beta, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using Clerk as your authentication and user management backend in a Flutter app
- You want pre-built UI components for Clerk authentication flows
Skip it when
- You require official, first-party support from Clerk (this SDK is community-maintained)
- Your project relies on older versions of Flutter (< 3.27.4) or Dart (< 3.6.2)
Strengths
- Integrates Clerk sign-up, sign-in, and user management directly into Flutter
- Includes helpful widgets like ClerkAuthBuilder and ClerkUserButton
- Supports passkeys, Google OAuth, and Sign in with Apple
Weaknesses
- Currently in Beta, meaning breaking changes should be expected until the 1.0.0 release
- Community-maintained and provided as-is without official Clerk support
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 13
Requires adding the INTERNET permission to Android's AndroidManifest.xml and configuring publishable API keys from the Clerk Dashboard.
ClerkAuth(
config: ClerkAuthConfig(publishableKey: publishableKey),
child: MaterialApp(
home: ClerkAuthBuilder(
signedInBuilder: (context, authState) => const ClerkUserButton(),
signedOutBuilder: (context, authState) => const ClerkAuthentication(),
),
),
)Alternatives
Packages that do the same job and could replace clerk_flutter.
- firebase_auth
Choose this if you use Firebase as your backend instead of Clerk.
99Compare
Works with
Packages commonly used together with clerk_flutter: ones it builds on, ones built on it, and its own family.
- intlclerk_flutter depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- path_providerclerk_flutter depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- url_launcherclerk_flutter depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- flutter_svgclerk_flutter depends on itRenders Scalable Vector Graphics (SVG 1.1) and precompiled vector graphics in Flutter.
- image_pickerclerk_flutter depends on itFlutter plugin for selecting images/videos from the gallery and capturing new ones via camera.
- webview_flutterclerk_flutter depends on itFlutter plugin that embeds a native WebView widget.
- email_validatorclerk_flutter depends on itA simple Dart class for validating email addresses without using RegEx.
- passkeysclerk_flutter depends on itFlutter plugin enabling passkey authentication based on WebAuthn and FIDO2.