{"id":17781699,"url":"https://github.com/abdulmominsakib/flutter-component-separator","last_synced_at":"2026-04-20T03:02:05.886Z","repository":{"id":258968993,"uuid":"875532388","full_name":"abdulmominsakib/flutter-component-separator","owner":"abdulmominsakib","description":"VSCode extension that automatically separates Flutter widget classes into individual files, improving code organization and maintainability.","archived":false,"fork":false,"pushed_at":"2024-10-21T08:52:28.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T19:55:47.464Z","etag":null,"topics":["code-organization","dart","flutter","flutter-development","refactoring","vscode-extension","widget-extraction"],"latest_commit_sha":null,"homepage":"","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/abdulmominsakib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-10-20T08:28:43.000Z","updated_at":"2024-10-21T08:52:31.000Z","dependencies_parsed_at":"2024-10-22T10:23:21.477Z","dependency_job_id":null,"html_url":"https://github.com/abdulmominsakib/flutter-component-separator","commit_stats":null,"previous_names":["abdulmominsakib/flutter-component-separator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/abdulmominsakib/flutter-component-separator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulmominsakib%2Fflutter-component-separator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulmominsakib%2Fflutter-component-separator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulmominsakib%2Fflutter-component-separator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulmominsakib%2Fflutter-component-separator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdulmominsakib","download_url":"https://codeload.github.com/abdulmominsakib/flutter-component-separator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulmominsakib%2Fflutter-component-separator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["code-organization","dart","flutter","flutter-development","refactoring","vscode-extension","widget-extraction"],"created_at":"2024-10-27T04:04:16.367Z","updated_at":"2026-04-20T03:02:05.864Z","avatar_url":"https://github.com/abdulmominsakib.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Component Separator\n\n## Overview\n\nFlutter Component Separator is a Visual Studio Code extension designed to streamline the organization of Flutter widget files. It automatically separates component classes into individual files, making your Flutter projects more modular and easier to maintain.\n\n## Features\n\n- Automatically identifies the main widget in a Flutter file\n- Separates other widget classes into individual files\n- Creates a `components` folder to store separated widgets\n- Updates import statements in the main file\n- Works with any Flutter file structure\n\n## Installation\n\n1. Open Visual Studio Code\n2. Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X)\n3. Search for \"Flutter Component Separator\"\n4. Click on the \"Install\" button\n\nAlternatively, you can install the extension from the Visual Studio Code Marketplace.\n\n## Usage\n\n1. Open a Flutter file containing multiple widget classes\n2. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)\n3. Type and select \"Separate Flutter Components\"\n4. The extension will process the file:\n   - The first widget class encountered will be considered the main widget and will remain in the original file\n   - All other widget classes will be moved to separate files in a new `components` folder\n   - Import statements will be updated in the main file\n\n## Example\n\nBefore:\n```dart\n// main_screen.dart\nclass MainScreen extends StatelessWidget {\n  // ...\n}\n\nclass Header extends StatelessWidget {\n  // ...\n}\n\nclass Footer extends StatelessWidget {\n  // ...\n}\n```\n\nAfter running the extension:\n\n```dart\n// main_screen.dart\nimport 'components/header.dart';\nimport 'components/footer.dart';\n\nclass MainScreen extends StatelessWidget {\n  // ...\n}\n```\n\n```dart\n// components/header.dart\nclass Header extends StatelessWidget {\n  // ...\n}\n```\n\n```dart\n// components/footer.dart\nclass Footer extends StatelessWidget {\n  // ...\n}\n```\n\n## Requirements\n\n- Visual Studio Code 1.60.0 or higher\n- Flutter extension for Visual Studio Code\n\n## Known Issues\n\n- The extension currently does not handle nested classes or classes defined inside functions\n- It may not correctly process files with complex string literals containing code-like content\n\n## Contributing\n\nContributions to the Flutter Component Separator extension are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\nIf you encounter any problems or have any suggestions, please open an issue on the [GitHub repository](https://github.com/yourusername/flutter-component-separator).\n\nEnjoy using Flutter Component Separator!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdulmominsakib%2Fflutter-component-separator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdulmominsakib%2Fflutter-component-separator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdulmominsakib%2Fflutter-component-separator/lists"}