Skip to content

Instantly share code, notes, and snippets.

@Sameerkash
Created July 8, 2020 12:36
Show Gist options
  • Save Sameerkash/97a585671b6b495fc2a147a59139ecd5 to your computer and use it in GitHub Desktop.
Save Sameerkash/97a585671b6b495fc2a147a59139ecd5 to your computer and use it in GitHub Desktop.
void main() => runApp(
      MultiProvider(
        providers: [
          Provider(
            create: (_) => LocalStorage(),
          ),
          StateNotifierProvider<TodoVM, TodoState>(
            create: (_) => TodoVM(),
          ),
        ],
        child: MyApp(),
      ),
    );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment