Overview Version History Q & A Rating & Review
Overview
VSCode support for the GetBloc and provides tools for effectively creating GetX Controllers for Flutter apps.
Installation
GetBloc can be installed from the VSCode Marketplace or by searching within VSCode .
Commands
Command
Description
GetBloc: New Binding Module
Generate a new GetX Binding Module Structure
GetBloc: New Module
Generate a new Module Structure
GetBloc: New Controller
Generate a new Controller
GetBloc: New State Controller
Generate a new StateController
You can activate the commands by launching the command palette (View -> Command Palette) and running entering the command name or you can right click on the directory in which you'd like to create the Controller/StateController and select the command from the context menu.
Code Actions
Action
Description
Wrap with Obx
Wraps current widget in a Obx
Wrap with ListenerWidget
Wraps current widget in a ListenerWidget
Snippets
Shortcut
Description
importgetbloc
Imports package:getbloc
importgetbloctest
Imports package:getbloc_test
controller
Creates a Controller
class
statecontroller
Creates a StateController
class
observercontroller
Creates a ObserverController
class
listenerwidget
Creates a Listener
Widget
controllerstate
Creates a state class
controllerevent
Creates an event class
testcontroller
Creates a testController
page
Creates a page extending StatelessWidget
pagegetview
Creates a page extending GetView
widget
Creates a widget extending StatelessWidget
material
or importM
Imports a package:flutter/material.dart