KC Flutter Snippets
Flutter code snippets with KC structure (constructors, fields, methods).
Features
This extension provides Flutter/Dart code snippets that follow the KC coding standards with proper structure:
- Organized constructor, fields, and methods sections
- Consistent comment headers
- Common Flutter widget patterns
Snippets
Prefix |
Description |
stlsk |
StatelessWidget with KC structure |
stlsfk |
StatefulWidget with KC structure |
stlp |
Private widget template |
Usage
- Type the snippet prefix (e.g.,
stlsk )
- Press
Tab to expand the snippet
- Use
Tab to navigate through placeholders
- Fill in your class names and content
Example
Type stlsk and press Tab:
class WidgetName extends StatelessWidget {
// ------------------------------- CONSTRUCTORS ------------------------------
const WidgetName({super.key});
// ------------------------------- FIELDS ------------------------------------
// Add your fields here
// --------------------------------- METHODS ---------------------------------
@override
Widget build(BuildContext context) {
return Container();
}
// Add your methods here
}
Installation
Install from VS Code Extensions Marketplace or manually install the .vsix file.
License
MIT
snippets
| |