A Code on the Go template bundle that adds Flutter starter projects to the New Project screen, alongside the built-in core templates.
It contributes five templates, one per state-management approach:
| Template | Directory | State management |
|---|---|---|
| Flutter Basic | FlutterBasic/ |
none (plain setState) |
| Flutter BLoC | FlutterBloc/ |
flutter_bloc |
| Flutter Provider | FlutterProvider/ |
provider |
| Flutter GetX | FlutterGetx/ |
get |
| Flutter Riverpod | FlutterRiverpod/ |
flutter_riverpod |
Each generates a small, idiomatic Flutter project (a counter app) with pubspec.yaml, lib/
and analysis_options.yaml, substituting the app name and package name entered in the New
Project dialog.
There is no code. The bundle is a .cgt file: a zip of the five directories plus
templates.json, which Code on the Go reads directly. Install it under Preferences →
Extensions Manager → Templates with the + button, and the five templates appear in
New Project. Nothing to enable, no permissions.
Files ending in .peb are rendered by Pebble at project-creation time and lose the suffix;
everything else is copied byte for byte. These templates use three expressions only:
${{APP_NAME}}, ${{APP_NAME | lower}} and ${{PACKAGE_NAME}}.
The .cgt is never committed. The publish workflow generates it. To build one locally:
./scripts/build-templates.sh Flutter-Starter-Kit
unzip -l dist/flutter-starter-kit.cgtSee ../README.md for authoring guidance and the format reference.
Until ADFA-6252 these templates shipped as a plugin that built a .cgt on the device at
activate() and registered it. The plugin is gone; the skeletons are unchanged.
If a device still has the old plugin installed, disable or uninstall it before adding this
bundle. Both register the same five templates from unlinked sources, so each would appear
twice. Disabling the plugin calls its deactivate(), which removes its copies.
This bundle scaffolds project files only — it does not install the Flutter or Dart SDK.
Code on the Go does not yet ship an on-device Flutter toolchain, so building or running a
generated project needs Flutter on a separate machine. Enter an app name that is a valid Dart
package identifier (lowercase, no spaces — underscores are fine); it is lower-cased for the
name: field in pubspec.yaml.
Original idea by Raju Kumar (ADFA-2599).
Contributed by RJ Ali <rjali3232@gmail.com> via the Code on the Go community submission process, rebuilt on the IDE's template system (ADFA-3857), and converted to a template bundle in ADFA-6252.