clerk_flutter 0.0.6-dev copy "clerk_flutter: ^0.0.6-dev" to clipboard
clerk_flutter: ^0.0.6-dev copied to clipboard

Package that will allow you to authenticate and use Clerk from Flutter code.

Official Clerk Flutter SDK (Pre-release Alpha) #

Pub Version Pub Points chat on Discord documentation twitter

❗️ Breaking changes should be expected until the first stable release (1.0.0) ❗️

Clerk helps developers build user management. We provide streamlined user experiences for your users to sign up, sign in, and manage their profile from your Flutter code.

Requirements #

  • Flutter >= 3.10.0
  • Dart >= 3.0.0

In Development #

  • Organization support

Example Usage #

To use this package you will need to go to your Clerk Dashboard create an application and copy the public and publishable API keys into your project.

class ExampleApp extends StatefulWidget {
  /// Constructs an instance of Example App
  const ExampleApp({
    super.key,
    required this.publishableKey,
  });

  /// Publishable Key
  final String publishableKey;

  @override
  State<ExampleApp> createState() => _ExampleAppState();
}

class _ExampleAppState extends State<ExampleApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: ClerkAuth(
        publishableKey: widget.publishableKey,
        child: Scaffold(
          backgroundColor: ClerkColors.whiteSmoke,
          body: Padding(
            padding: horizontalPadding32,
            child: Center(
              child: ClerkAuthBuilder(
                signedInBuilder: (context, auth) => const ClerkUserButton(),
                signedOutBuilder: (context, auth) =>
                    const ClerkAuthenticationWidget(),
              ),
            ),
          ),
        ),
      ),
    );
  }
}
copied to clipboard

License #

This SDK is licensed under the MIT license found in the LICENSE file.

11
likes
150
points
252
downloads

Publisher

verified publisherclerk.com

Weekly Downloads

2024.08.10 - 2025.02.22

Package that will allow you to authenticate and use Clerk from Flutter code.

Homepage
Repository (GitHub)
View/report issues

Topics

#authentication

Documentation

API reference

License

MIT (license)

Dependencies

clerk_auth, collection, email_validator, flutter, flutter_svg, image_picker, path_provider, phone_input, webview_flutter

More

Packages that depend on clerk_flutter