https://github.com/devmuaz/flutter-hooks-snippets
A quick and easy code snippets for flutter hooks.
https://github.com/devmuaz/flutter-hooks-snippets
flutter hooks snippets
Last synced: 3 months ago
JSON representation
A quick and easy code snippets for flutter hooks.
- Host: GitHub
- URL: https://github.com/devmuaz/flutter-hooks-snippets
- Owner: devmuaz
- License: mit
- Created: 2021-07-15T22:22:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T08:21:41.000Z (about 1 year ago)
- Last Synced: 2024-04-09T08:58:10.869Z (about 1 year ago)
- Topics: flutter, hooks, snippets
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
![]()
# Flutter Hooks Snippets
Flutter Hooks Snippets is a [Visual Studio Code](https://code.visualstudio.com/) extension that makes writing Flutter [Hooks](https://pub.dev/packages/flutter_hooks) much easier and faster!
Inspired by [React Hooks Snippets](https://github.com/alDuncanson/react-hooks-snippets) ❤️
## Hooks Snippets
| Prefix | Snippet | Description |
| ------------- | -------------------------- | ----------------------------------- |
| `importHooks` | Import Hooks | Import Material and Hooks packages |
| `hook` | `Hook` class | Creates a Hook class. |
| `hookW` | `HookWidget` class | Creates a HookWidget class. |
| `hookSW` | `StatefulHookWidget` class | Creates a StatefulHookWidget class. |
| `initHook` | `initHook()` |
| `useS` | `useState()` |
| `useE` | `useEffect()` |
| `useM` | `useMemoized()` |
| `useR` | `useReducer()` |## Hooks Riverpod Snippets
| Prefix | Snippet | Description |
| -------- | ---------------------------------- | --------------------------------------------- |
| `hookC` | `HookConsumerWidget` class | Creates a Creates a HookConsumerWidget class. |
| `hookSC` | `StatefulHookConsumerWidget` class | Creates a StatefulHookConsumerWidget class. |## Medium articles by the author
You can always read the articles I write on my [devmuaz](https://devmuaz.medium.com/) account which I write pretty great Flutter content out there.
## Contributions & Support
Issues and pull requests are always welcome 😄
If you found this extension useful for you and liked it, please star the repo ⭐️ it would mean a lot!
## License
**MIT**