패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.0

lumen_ui

Lumen UI는 앱을 가볍고 유지보수하기 쉽게 만들기 위해 필요에 따라 모듈식 UI 컴포넌트를 생성하는 Flutter용 CLI 도구입니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
24
좋아요
2
Pub 점수
130

패키지 설치

flutter pub add lumen_ui

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Lumen UI는 모듈식이고 재사용 가능한 UI 컴포넌트를 자동으로 생성하는 Flutter용 CLI 도구입니다. 필요에 따라 잘 구조화된 위젯을 생성함으로써 개발자가 가벼우면서도 확장 가능한 앱을 유지할 수 있도록 도와줍니다. 이 도구는 Flutter 프로젝트와 원활하게 통합되며 Android, iOS, macOS, Windows, Linux 등 여러 플랫폼을 지원하여 일관된 UI를 보장합니다. 모듈성을 촉진함으로써 코드 조직을 향상시키고 UI 개발에서의 중복을 줄입니다.

사용 사례

  • 빠른 UI 프로토타이핑
  • 일관된 디자인 시스템 유지
  • 보일러플레이트 코드 줄이기
  • 대규모 Flutter 애플리케이션 확장
  • 컴포넌트 생성 자동화

주요 기능

  • CLI 기반 컴포넌트 생성
  • 모듈형 및 재사용 가능한 위젯 템플릿
  • 크로스 플랫폼 지원
  • 경량 출력
  • Flutter pub 패키지 시스템과의 통합

적합한 대상

  • Flutter 팀은 유지보수성을 우선시함
  • 디자인 중심 앱을 개발하는 개발자
  • 빠른 UI 반복이 필요한 프로젝트
  • 컴포넌트 기반 아키텍처를 사용하는 팀
  • 프론트엔드 중심의 플러터 개발자

고려 사항

  • CLI 워크플로우에 익숙해야 합니다
  • 생성 후 맞춤 설정이 필요할 수 있습니다
  • 안정적인 플러터 환경에 의존합니다
  • 구조화된 프로젝트 설정에서 가장 잘 사용됩니다
  • 런타임 라이브러리가 아니라 개발 도구입니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Lumen UI

A CLI-based Flutter package for generating modular, customizable UI components on demand.

Motivation

Flutter developers often struggle with bloated UI component libraries that increase app size and affect performance. Lumen UI CLI solves this by providing a command-line tool that generates only the components you need, with full customization options.

Features

  • Modular UI component generation
  • Customizable component templates
  • Theme and style configuration options
  • Material Design and Cupertino guideline compliance
  • Inline documentation for generated components

Full Documentation

For complete knowledge about the package, please visit the official documentation website:

Lumen UI Documentation

Installation

Follow these steps to set up your Flutter project and integrate Lumen UI:

1. Create a New Flutter Project

Using Flutter CLI
 flutter create my_app
 cd my_app
Using VS Code
  1. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS)
  2. Type "Flutter: New Project"
  3. Select "Application"
  4. Choose project directory
  5. Name your project
Using Android Studio
  1. Click "New Flutter Project" from welcome screen
  2. Select Flutter project type
  3. Configure project settings
  4. Click "Finish"

📚 New to Flutter? Check out the official Flutter documentation for detailed setup instructions.

2. Add Lumen UI to Your Project

Add this line to your pubspec.yaml under dependencies:

dev_dependencies:
  flutter_test:
    sdk: flutter
  lumen_ui: 0.0.1 # Add Lumen UI package

3. Install Dependencies

Run this command in your project directory:

flutter pub get

4. Verify Installation

Run this command to verify the installation:

flutter pub list

You should see lumen_ui: 1.0.0 in the list of installed packages.


🎉 Congratulations! You're now ready to use Lumen UI in your Flutter project.

Continue to the Usage section to learn how to implement Lumen UI components.

Usage

dart run lumen_ui [options]
Options
Option Alias Description Required
--type -t Type of component to generate Yes
--name -n Name of the component Yes
--output -o Output directory (defaults to lib/ui) No
--help -h Show help information No
--version -v Show version information No
--verbose - Enable verbose logging No
Component Types
  • button: Button components
  • dummy: Dummy components for testing
Component Naming Rules
  • Must start with a letter
  • Can contain letters, numbers, and underscores
  • Cannot contain spaces or special characters

Examples

List all supported types and their related UIs:

dart run lumen_ui --list

List all supported component types:

dart run lumen_ui --list-types

List related UIs for a specific component type:

dart run lumen_ui --list-uis button

Generate a primary button:

dart run lumen_ui -t button -u primarybutton -n primary

Generate with custom output directory:

dart run lumen_ui -t button -u iconbutton -n iconbtn -o lib/components 

Output Structure

Components are generated in the following structure:

lib/ui/
  ├── buttons/
  │   └── primary_button
        └── primary_button.dart
  └── styles/
      └── color.dart
      └── styles.dart

Error Handling

Common error messages and solutions:

  • Both --type, --ui and --name are required: Ensure both -t, -u and -n options are provided
  • Invalid component name: Follow the component naming rules
  • Error parsing arguments: Check the command syntax
  • Invalid argument format: Verify option values are correct

Additional Commands

Show help:

dart run lumen_ui --help

Show version:

dart run lumen_ui --version

Architecture

The project follows a Layered Architecture pattern with:

  • HMI Layer: Command-line interface
  • Service Layer: Component generation and template services
  • Application Layer: Core business logic
  • Communication Layer: File system operations

Technology Stack

  • Dart SDK (>=2.18.0)
  • Flutter SDK (>=3.0.0)
  • Development Tools: VS Code, Android Studio
  • CLI Framework: args/cli_util

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Requirements

  • Processor: Intel Core i5 or equivalent
  • RAM: 8GB minimum (16GB recommended)
  • Storage: 500GB SSD
  • Operating Systems: Windows, macOS, or Linux

License

MIT License

Authors

카테고리

의존성

의존성 목록 4 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.