Skip to content
pubscout

clerk_flutter

0.0.18-beta, released 4 months ago by clerk.com

Community-maintained Clerk SDK for user authentication and management in Flutter.

$ flutter pub add clerk_flutter
Source repository

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.

Works with

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