ckgoc_core 0.1.0 copy "ckgoc_core: ^0.1.0" to clipboard
ckgoc_core: ^0.1.0 copied to clipboard

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

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:ckgoc_core/ckgoc_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> {
  CkgocBrand _brand = CkgocBrand.skyGo;
  Brightness? _brightness; // null = follow system

  @override
  Widget build(BuildContext context) {
    return CkgocApp(
      brand: _brand,
      brightness: _brightness,
      child: MaterialApp(
        title: 'Company UI Showcase',
        debugShowCheckedModeBanner: false,
        theme: ThemeData.light(useMaterial3: true),
        darkTheme: ThemeData.dark(useMaterial3: true),
        themeMode: _brightness == null
            ? ThemeMode.dark
            : _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
176
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, lucide_icons

More

Packages that depend on ckgoc_core