Installation
Get the Dart SDK, Flutter, and the RonakCN CLI installed and ready in four steps.
Prerequisites
RonakCN requires Dart SDK ≥ 3.0 and Flutter ≥ 3.10. Steps 1 and 2 guide you through installing both if you do not have them yet.
Install Dart & Flutter
The easiest way to install both Dart and Flutter is via the official Flutter SDK, which bundles Dart. Download the installer for your platform from flutter.dev, then verify the install:
flutter --version
dart --versionRun flutter doctor to confirm the environment is healthy before continuing.
flutter doctorActivate the CLI
The CLI is distributed as a Dart pub global package. Activate it once and it becomes available everywhere on your machine:
dart pub global activate ronakcn_cliMake sure $HOME/.pub-cache/bin (or %APPDATA%\Pub\Cache\bin on Windows) is on your PATH. Verify with:
ronakcn --versionInitialise your project
Navigate to the root of your Flutter project and run:
ronakcn initThis creates a ronakcn.json config file in your project root. The default config looks like this:
{
"version": "1",
"outputDir": "lib/components",
"theme": {
"preset": "default",
"radius": "md"
}
}Add components
Use the add command to copy any component into your project:
ronakcn add buttonThe CLI copies the widget source to lib/components/button/, installs required pub dependencies, and updates ronakcn.json.
You can then import and use the component:
import 'package:my_app/components/button/button.dart';
// Inside a widget build method:
RcnButton(
label: 'Get started',
onPressed: () {},
)