{"id":25421281,"url":"https://github.com/jamalihassan0307/flutter-snippets-helper","last_synced_at":"2026-04-24T12:33:46.499Z","repository":{"id":276569915,"uuid":"929660625","full_name":"jamalihassan0307/flutter-snippets-helper","owner":"jamalihassan0307","description":"Essential Flutter widget snippets for rapid development. This extension provides commonly used Flutter widgets and patterns as snippets to speed up your development workflow.","archived":false,"fork":false,"pushed_at":"2025-02-09T04:34:35.000Z","size":11474,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T23:03:45.754Z","etag":null,"topics":["clean-code","flutter-plugin","flutter-snippets","helper-functions","jamalihassan0307","marketplace-released","snippets","visualstudio-extension","visualstudiocode","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=7jsscmp4zaio626xj6rxx77zhgeosa4yry5vhbr3hu7gcgt4k73q.flutter-snippets-helper","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamalihassan0307.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-09T04:18:15.000Z","updated_at":"2025-03-13T08:23:53.000Z","dependencies_parsed_at":"2025-02-09T05:35:37.108Z","dependency_job_id":null,"html_url":"https://github.com/jamalihassan0307/flutter-snippets-helper","commit_stats":null,"previous_names":["jamalihassan0307/flutter-snippets-helper"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jamalihassan0307/flutter-snippets-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamalihassan0307%2Fflutter-snippets-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamalihassan0307%2Fflutter-snippets-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamalihassan0307%2Fflutter-snippets-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamalihassan0307%2Fflutter-snippets-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamalihassan0307","download_url":"https://codeload.github.com/jamalihassan0307/flutter-snippets-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamalihassan0307%2Fflutter-snippets-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32224148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clean-code","flutter-plugin","flutter-snippets","helper-functions","jamalihassan0307","marketplace-released","snippets","visualstudio-extension","visualstudiocode","vscode","vscode-extension"],"created_at":"2025-02-16T20:25:33.114Z","updated_at":"2026-04-24T12:33:46.479Z","avatar_url":"https://github.com/jamalihassan0307.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Snippets Helper\n\nEssential Flutter widget snippets for rapid development. This extension provides commonly used Flutter widgets and patterns as snippets to speed up your development workflow.\n\n## Features\n\nThis extension includes snippets for:\n\n### Basic Widgets\n\n- `stless` → Creates a StatelessWidget\n\n  ```dart\n  class WidgetName extends StatelessWidget {\n    const WidgetName({super.key});\n\n    @override\n    Widget build(BuildContext context) {\n      return Container();\n    }\n  }\n  ```\n\n- `stful` → Creates a StatefulWidget\n\n  ```dart\n  class WidgetName extends StatefulWidget {\n    const WidgetName({super.key});\n\n    @override\n    State\u003cWidgetName\u003e createState() =\u003e _WidgetNameState();\n  }\n\n  class _WidgetNameState extends State\u003cWidgetName\u003e {\n    @override\n    Widget build(BuildContext context) {\n      return Container();\n    }\n  }\n  ```\n\n### Layout Widgets\n\n- `col` → Column with alignment options\n- `row` → Row with alignment options\n- `stack` → Stack with Positioned child\n- `cont` → Container with decoration and shadow\n- `responsive` → Responsive layout builder\n\n### List \u0026 Grid Widgets\n\n- `lvb` → ListView.builder\n  ```dart\n  ListView.builder(\n    itemCount: items.length,\n    itemBuilder: (context, index) {\n      return ListTile(\n        title: Text('Item $index'),\n      );\n    },\n  )\n  ```\n- `gvb` → GridView.builder with customizable parameters\n\n### Navigation \u0026 Structure\n\n- `scaffold` → Scaffold with AppBar and FloatingActionButton\n- `appbar` → Custom AppBar with leading and actions\n- `drawer` → Navigation Drawer with header\n- `tabs` → TabBar with TabBarView\n- `matapp` → MaterialApp with theme setup\n\n### Async Widgets\n\n- `fb` → FutureBuilder with loading and error handling\n  ```dart\n  FutureBuilder\u003cdynamic\u003e(\n    future: myFuture,\n    builder: (context, snapshot) {\n      if (snapshot.connectionState == ConnectionState.waiting) {\n        return const CircularProgressIndicator();\n      }\n      if (snapshot.hasError) {\n        return Text('Error: ${snapshot.error}');\n      }\n      return Container();\n    },\n  )\n  ```\n- `sb` → StreamBuilder with loading and error handling\n\n### State Management\n\n- `providerclass` → Provider ChangeNotifier class\n\n  ```dart\n  class MyProvider extends ChangeNotifier {\n    int _value = 0;\n    int get value =\u003e _value;\n\n    void updateValue(int newValue) {\n      _value = newValue;\n      notifyListeners();\n    }\n  }\n  ```\n\n- `getxc` → GetX Controller class\n- `bloc` → BLoC class with event handler\n\n### UI Components\n\n- `card` → Card with padding and content\n- `btn` → Styled ElevatedButton\n- `form` → Form with validation\n- `animcont` → AnimatedContainer with duration\n- `pageview` → PageView with controller\n\n## Usage\n\n1. Install the extension\n2. Open a `.dart` file\n3. Start typing the snippet prefix (e.g., `stless`)\n4. Press `Tab` to insert the snippet\n5. Use `Tab` to navigate through the placeholders\n\n## Examples\n\n### Creating a Form\n\n```dart\n// Type 'form' and press Tab\nfinal _formKey = GlobalKey\u003cFormState\u003e();\n\nForm(\n  key: _formKey,\n  child: Column(\n    children: [\n      TextFormField(\n        decoration: const InputDecoration(\n          labelText: 'Label',\n          hintText: 'Enter text',\n        ),\n        validator: (value) {\n          if (value == null || value.isEmpty) {\n            return 'Please enter some text';\n          }\n          return null;\n        },\n      ),\n      ElevatedButton(\n        onPressed: () {\n          if (_formKey.currentState!.validate()) {\n            // Process data\n          }\n        },\n        child: const Text('Submit'),\n      ),\n    ],\n  ),\n)\n```\n\n### Creating a Responsive Layout\n\n```dart\n// Type 'responsive' and press Tab\nLayoutBuilder(\n  builder: (context, constraints) {\n    if (constraints.maxWidth \u003c 600) {\n      return // Mobile layout\n    } else if (constraints.maxWidth \u003c 900) {\n      return // Tablet layout\n    } else {\n      return // Desktop layout\n    }\n  },\n)\n```\n\n## Requirements\n\n- VS Code 1.93.0 or higher\n- Dart/Flutter extension installed\n\n## Known Issues\n\nNone at the moment. Please report any issues on our GitHub repository.\n\n## Release Notes\n\n### 0.0.2\n\n- Added comprehensive snippets documentation\n- Added icon and improved package metadata\n- Fixed snippet formatting issues\n\n### 0.0.1\n\n- Initial release with essential Flutter snippets\n- Basic widget templates\n- Layout widgets\n- Navigation patterns\n- State management templates\n- Form and validation snippets\n\n## Contributing\n\nFeel free to submit issues and enhancement requests on our GitHub repository.\n\n## Working with the Extension\n\n- Press `Ctrl+Space` (Windows, Linux, macOS) to see all available snippets\n- Type the snippet prefix (e.g., `stless`) and press `Tab`\n- Use `Tab` to navigate through the snippet placeholders\n\n## For more information\n\n- [Flutter Documentation](https://flutter.dev/docs)\n- [VS Code Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines)\n- [Extension Repository](https://github.com/jamalihassan0307/flutter-snippets-helper)\n\n**Enjoy coding Flutter faster!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamalihassan0307%2Fflutter-snippets-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamalihassan0307%2Fflutter-snippets-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamalihassan0307%2Fflutter-snippets-helper/lists"}