Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>ProviderKit SnippetsNew to Visual Studio Code? Get it now.
ProviderKit Snippets

ProviderKit Snippets

Ram Prasanth

| (0) | Free
Dart snippets for ProviderKit to quickly insert common ProviderKit boilerplate.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ProviderKit Snippets

VS Code Dart Flutter License: BSD 2-Clause

Snippets demo

ProviderKit Snippets is a lightweight Visual Studio Code extension that provides useful Dart snippets for the provider_kit state management library.

Type a pk prefix, choose a snippet, press Tab, and keep coding.


Installation

Install ProviderKit Snippets directly from the VS Code Marketplace.

Once installed, open any .dart file and start typing a pk prefix. IntelliSense will display the available snippets automatically.


Usage

  1. Type a snippet prefix (e.g., pkStateBuilder) in a Dart file.
  2. Select the snippet from the IntelliSense dropdown.
  3. Press Tab to insert the template.
  4. Fill in the placeholder values (e.g., notifier classes, state types).

Quick Preview

Type pkStateBuilder + Tab to generate:

StateBuilder<MyState>(
  provider: provider,
  builder: (context, state, child) {
    return widget;
  },
)

For a complete list of all available snippets, see the table below.

Available Snippets

All snippets are prefixed with pk for fast discovery and to avoid collisions with other snippet libraries.

Providers

Prefix Provider
pkStateNotifier StateNotifier class
pkViewStateNotifier ViewStateNotifier class
pkAsyncViewStateNotifier AsyncViewStateNotifier class

State Widgets

Prefix Widget
pkStateBuilder StateBuilder
pkStateBuilderOf StateBuilder.of
pkStateListener StateListener
pkStateListenerOf StateListener.of
pkStateConsumer StateConsumer
pkStateConsumerOf StateConsumer.of

Multi-State Widgets

Prefix Widget
pkMultiStateBuilder MultiStateBuilder
pkMultiStateListener MultiStateListener
pkMultiStateConsumer MultiStateConsumer

ViewState Widgets

Prefix Widget
pkViewStateBuilder ViewStateBuilder
pkViewStateBuilderOf ViewStateBuilder.of
pkViewStateListener ViewStateListener
pkViewStateListenerOf ViewStateListener.of
pkViewStateConsumer ViewStateConsumer
pkViewStateConsumerOf ViewStateConsumer.of

Multi-ViewState Widgets

Prefix Widget
pkMultiViewStateBuilder MultiViewStateBuilder
pkMultiViewStateListener MultiViewStateListener
pkMultiViewStateConsumer MultiViewStateConsumer

ViewState Providers

Prefix Widget
pkViewStateWidgetsProvider ViewStateWidgetsProvider

Design

ProviderKit Snippets follows a minimalist, developer-first approach:

  • Simple — install the extension and start using snippets immediately.
  • Consistent naming — every snippet starts with pk, making ProviderKit snippets easy to find.
  • Clean snippets — only commonly used parameters are included, keeping generated code concise.
  • Useful tab stops — move quickly between placeholders with Tab.

Related Links

  • ProviderKit on pub.dev: provider_kit
  • ProviderKit GitHub: github.com/RAMb002/provider_kit
  • Report an issue: GitHub Issues

Contributing

Found a bug or have a suggestion for a new snippet? We welcome contributions!

Please open an issue or submit a pull request on the ProviderKit GitHub repository. When reporting snippet issues, include the exact prefix and the generated code.


📄 License

Distributed under the BSD 2-Clause License. See the LICENSE file for more details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft