flutter_shadcn_cli 0.2.6 copy "flutter_shadcn_cli: ^0.2.6" to clipboard
flutter_shadcn_cli: ^0.2.6 copied to clipboard

CLI to install, sync, and update shadcn/ui components in Flutter apps. Supports local and remote registries with dependency-aware installs.

example/flutter_shadcn_cli_example.dart

import 'package:flutter_shadcn_cli/flutter_shadcn_cli.dart';

void main() {
  final presets = registryThemePresetsData;
  final firstPreset = presets.first;

  print('Bundled theme presets: ${presets.length}');
  print('First preset: ${firstPreset.name} (${firstPreset.id})');
  print('Light primary: ${firstPreset.light['primary']}');
  print('Dark primary: ${firstPreset.dark['primary']}');

  RegistryThemePresetData? modernMinimal;
  for (final preset in presets) {
    if (preset.id == 'modern-minimal') {
      modernMinimal = preset;
      break;
    }
  }

  if (modernMinimal != null) {
    print('Modern Minimal radius: ${modernMinimal.lightTokens['radius']}');
  }
}
1
likes
140
points
59
downloads

Documentation

API reference

Publisher

verified publishermibrar.dev

Weekly Downloads

CLI to install, sync, and update shadcn/ui components in Flutter apps. Supports local and remote registries with dependency-aware installs.

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

args, crypto, http, json_schema, path, yaml

More

Packages that depend on flutter_shadcn_cli