FlAppwrite Account Kit

A Flutter wrapper for Appwrite's Accounts service, makes it easy to use manage authentication and account features.

Under development. Not ready for production. Help get ready for production.

Getting Started

This is really very easy to use

  1. Add dependency from git (Will only publish to pub if enough people are interested to use and help make it better.)

    git: https://github.com/lohanidamodar/flappwrite_account_kit

  2. Wrap your MaterialApp FlAppwriteAccountKit passing a properly initialized Appwrite Client. Example below:

    class MyApp extends StatefulWidget {
    _MyAppState createState() => _MyAppState();

    class _MyAppState extends State<MyApp> {
    late Client client;
    void initState() {
    //initialize your client
    client = Client();

    Widget build(BuildContext context) {
    return FlAppwriteAccountKit(
    client: client,
    child: MaterialApp(
    title: 'Flutter Demo',
    theme: ThemeData(
    primarySwatch: Colors.blue,
    home: MainScreen(),

  3. Access authNotifier from context. authNotifier is an instance of AuthNotifier that provides all the functions of Appwrite's Account service and some easy way to handle authentication.

  4. Get context.authNotifier?.status gets the authentication status which can be one of the AuthStatus.uninitialized, AuthStatus.unauthenticated, AuthStatus.authenticating and AuthStatus.authenticated. You can check the status and display the appropriate UI, for example

    class MainScreen extends StatelessWidget {
    Widget build(BuildContext context) {
    final authNotifier = context.authNotifier;

     Widget widget;
     switch (authNotifier.status) {
       case AuthStatus.authenticated:
         widget = AdminPage();
       case AuthStatus.unauthenticated:
       case AuthStatus.authenticating:
         widget = LoginPage();
       case AuthStatus.uninitialized:
         widget = LoadingPage();
     return widget;


  5. You must use the functions from the context.authNotifier instead default Account service from Appwrite SDK to create user, create session (login), delete session (logout), so that the context.authNotifier?.status is properly updated and your UI updates accordingly.