Live Preview PoC | CoUI

Live Preview PoC

Web/Flutter 듀얼 라이브 프리뷰 기능의 PoC 페이지입니다.

Live Preview PoC#

Web과 Flutter 프리뷰를 나란히 보여주는 듀얼 라이브 프리뷰 기능입니다.

Single Variant Mode#

Button — Primary#

Web
Flutter
Loading Flutter...
class ButtonPrimaryExample extends StatefulComponent {
  const ButtonPrimaryExample({super.key});

  @override
  State<ButtonPrimaryExample> createState() => _ButtonPrimaryExampleState();
}

class _ButtonPrimaryExampleState extends State<ButtonPrimaryExample> {
  @override
  Component build(BuildContext context) {
    return CoButton(
      variant: CoreButtonVariant.primary,
      onPressed: () {},
      child: text('Primary'),
    );
  }
}
class ButtonPrimaryExample extends StatefulWidget {
  const ButtonPrimaryExample({super.key});

  @override
  State<ButtonPrimaryExample> createState() => _ButtonPrimaryExampleState();
}

class _ButtonPrimaryExampleState extends State<ButtonPrimaryExample> {
  @override
  Widget build(BuildContext context) {
    return CoButton(
      variant: CoreButtonVariant.primary,
      onPressed: () {},
      child: const Text('Primary'),
    );
  }
}

Button — Outline#

Web
Flutter
Loading Flutter...
class ButtonOutlineExample extends StatefulComponent {
  const ButtonOutlineExample({super.key});

  @override
  State<ButtonOutlineExample> createState() => _ButtonOutlineExampleState();
}

class _ButtonOutlineExampleState extends State<ButtonOutlineExample> {
  @override
  Component build(BuildContext context) {
    return CoButton(
      variant: CoreButtonVariant.outline,
      onPressed: () {},
      child: text('Outline'),
    );
  }
}
class ButtonOutlineExample extends StatefulWidget {
  const ButtonOutlineExample({super.key});

  @override
  State<ButtonOutlineExample> createState() => _ButtonOutlineExampleState();
}

class _ButtonOutlineExampleState extends State<ButtonOutlineExample> {
  @override
  Widget build(BuildContext context) {
    return CoButton(
      variant: CoreButtonVariant.outline,
      onPressed: () {},
      child: const Text('Outline'),
    );
  }
}

모든 Button variant를 한번에 확인합니다.