Skip to main content

ckcoreui 0.4.1 copy "ckcoreui: ^0.4.1" to clipboard
ckcoreui: ^0.4.1 copied to clipboard

A Flutter design system package providing reusable UI components, design tokens, and multi-brand themes (CastleKeep & SkyGo).

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:ckcoreui/ckcore_core.dart';

import 'screens/home_screen.dart';

void main() {
  runApp(const ShowcaseApp());
}

class ShowcaseApp extends StatefulWidget {
  const ShowcaseApp({super.key});

  @override
  State<ShowcaseApp> createState() => _ShowcaseAppState();
}

class _ShowcaseAppState extends State<ShowcaseApp> {
  ckcoreBrand _brand = ckcoreBrand.skyGo;
  Brightness? _brightness; // null = follow system

  @override
  Widget build(BuildContext context) {
    return CKApp(
      brand: _brand,
      brightness: _brightness,
      title: 'Company UI Showcase',
      debugShowCheckedModeBanner: false,
      themeMode: _brightness == null
          ? ThemeMode.system
          : _brightness == Brightness.dark
          ? ThemeMode.dark
          : ThemeMode.light,
      home: HomeScreen(
        currentBrand: _brand,
        currentBrightness: _brightness ?? Brightness.dark,
        onBrandChanged: (brand) => setState(() => _brand = brand),
        onBrightnessChanged: (b) => setState(() => _brightness = b),
      ),
    );
  }
}
0
likes
0
points
588
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

A Flutter design system package providing reusable UI components, design tokens, and multi-brand themes (CastleKeep & SkyGo).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_svg, lucide_icons_flutter

More

Packages that depend on ckcoreui