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

패키지 상세v1.3.17

flutter_base_kit

빠른 앱 개발을 위한 기본 클래스, 유틸리티 및 일반 패턴을 포함한 포괄적인 플러터 개발 키트입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
189
좋아요
1
Pub 점수
160

패키지 설치

flutter pub add flutter_base_kit

패키지 개요

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

Flutter Base Kit는 Flutter 앱 개발을 가속화하기 위해 설계된 종합적인 개발 툴킷입니다. 기초 클래스, 재사용 가능한 유틸리티, 그리고 확립된 패턴을 제공하여 일반적인 개발 작업을 간소화합니다. 일관된 아키텍처와 반복 코드 감소를 통해 팀이 코드 품질을 유지하고 여러 플랫폼에서 생산성을 향상시킬 수 있도록 도와줍니다. 이 키트는 Android, iOS, Web, macOS, Windows, Linux를 지원하며, 구조와 확장성 필요성이 있는 크로스플랫폼 프로젝트에 이상적입니다.

사용 사례

  • 빠른 프로토타이핑
  • 크로스플랫폼 앱 개발
  • 팀 기반 프로젝트 표준화
  • 코드베이스 일관성
  • 반복적인 보일러플레이트 줄이기
  • 온보딩 가속화

주요 기능

  • 모델과 뷰의 기본 클래스
  • 일반적인 작업을 위한 유틸리티 함수
  • 표준화된 오류 처리
  • 사용자 정의 가능한 앱 아키텍처
  • 플랫폼 독립적 설계
  • 내장된 상태 관리 패턴

적합한 대상

  • 새로운 Flutter 프로젝트
  • 대규모 애플리케이션
  • 개발 팀
  • 애자일 워크플로
  • 유지보수 가능한 구조가 필요한 프로젝트
  • 빠른 반복 주기

고려 사항

  • 핵심 플러터 개념을 이해하고 있어야 합니다
  • 고유한 앱 로직을 위해 맞춤 설정이 필요할 수 있습니다
  • 안정적인 Dart/Flutter 버전에 의존합니다
  • 완전한 프레임워크 대체물이 아님
  • 명확한 아키텍처 설계와 함께 사용할 때 가장 효과적입니다
  • 새로운 팀원을 위한 학습 곡선

원본 README

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

Flutter Base Kit 🚀

Flutter Base Kit Logo

pub package

One-click configuration of project foundation using best practices and time-tested templates

Create new Flutter applications with pre-configured architecture: routing, DI, networking, localization, theming, and much more.

Why Flutter Base Kit?

  • ⚡ Quick Start - don't waste time setting up architecture
  • 🏗️ Ready Structure - DI, routing, API, themes, localization
  • 📱 Best Practices - proven architecture from real projects
  • 🔧 CLI Tool - create projects with a single command

Installation

Activate package globally
dart pub global activate flutter_base_kit
If command not found

Windows:

  • Add to PATH: %LOCALAPPDATA%\Pub\Cache\bin

macOS/Linux:

  • Add to ~/.bashrc or ~/.zshrc: export PATH="$PATH":"$HOME/.pub-cache/bin"

📋 If you don't have Dart/Flutter SDK installed

Windows
  1. Download Flutter SDK from flutter.dev
  2. Extract and add to PATH
  3. Run flutter doctor
macOS
brew install flutter
flutter doctor
Linux
sudo snap install flutter --classic
flutter doctor

How to use

Option 1: Create a new project
# Create an app
flutter_base_kit create my_app --template app

# Create a package
flutter_base_kit create my_package --template package

# Create a package with tester
flutter_base_kit create my_project --template package+tester
Option 2: Add to existing project
# Navigate to your project folder
cd my_existing_project

# Initialize Flutter Base Kit
flutter_base_kit init
Option 3: Add new modules to existing project
# Add a complete module (API → Service → Cubit → Page)
flutter_base_kit module --name user_store

What you get in the project

📁 Application structure
lib/
├── api/           # API and network requests
├── core/          # Core logic
├── di/            # Dependency injection
├── l10n/          # Localization (EN, ES)
├── models/        # Data models
├── routes/        # Navigation
├── services/      # Services
├── themes/        # Theming
├── ui/            # UI components
└── utils/         # Utilities
📁 Module structure (created with module command)
lib/
├── api/retrofit/{module_name}/     # API interface
├── services/api/{module_name}/     # Business logic
├── models/{module_name}/           # Data models
├── core/{module_name}/             # State management
└── ui/pages/app/pages/{module_name}/ # UI page
🛠️ Ready components
  • Routing - AutoRoute for navigation
  • DI - GetIt + Injectable for dependency management
  • API - Dio + Retrofit for server communication
  • State - Provider + Bloc for state management
  • Themes - Flexible theming with light/dark support
  • Localization - Support for English and Spanish languages
  • Code Generation - Freezed, JSON, routes are generated automatically
🧩 Module Generator
  • Complete Module Creation - Generate API → Service → Cubit → Page structure
  • Automatic Naming - Converts snake_case to PascalCase automatically
  • Build Runner Integration - Automatically runs code generation after module creation
🎨 UI Components
  • AppKitLoader - Global loading widget with customizable presets
  • AppDialog - Comprehensive dialog system
  • AppSnackBar - Enhanced snackbar with error, success, and info variants
  • AppBuilder - Reactive widget builder with built-in loading/error states

Command examples

# Create an app
flutter_base_kit create my_app --template app --org com.mycompany

# Create a package
flutter_base_kit create my_package --template package

# Create a monorepo (package + tester)
flutter_base_kit create my_library --template package+tester --org com.mycompany

# Add to existing project
flutter_base_kit init

# Add new module
flutter_base_kit module --name user_store

Next steps

After creating a project:

  1. Navigate to project folder:

    cd my_app
    
  2. Install dependencies:

    flutter pub get
    
  3. Generate code:

    flutter packages pub run build_runner build
    
  4. Run the app:

    flutter run
    

Useful commands

# Show help
flutter_base_kit --help

# Generate code (in project)
flutter packages pub run build_runner build --delete-conflicting-outputs

# Create a new module
flutter_base_kit module --name user_store

Template types

  • app - Full Flutter application with all components
  • package - Flutter package/plugin for code reuse
  • package+tester - Package + separate testing application

Command options

  • --org - Organization identifier (e.g., com.mycompany)
  • --template - Template type (app, package, package+tester)
  • --name - Module name (must be in lowercase or snake_case format, e.g., user, user_store, product_item)
  • --help - Show help

Module naming rules

Module name must be in lowercase or snake_case format (e.g., user, user_store, product_item)

Dependencies

Core Dependencies
  • flutter_bloc: State management
  • get_it: Dependency injection
  • injectable: Code generation for DI
  • auto_route: Declarative routing
  • dio: HTTP client
  • retrofit: Type-safe HTTP client
  • freezed: Immutable data classes
  • json_annotation: JSON serialization
  • flutter_localizations: Localization support
Development Dependencies
  • build_runner: Code generation
  • injectable_generator: DI code generation
  • auto_route_generator: Route code generation
  • retrofit_generator: Retrofit code generation
  • json_serializable: JSON code generation
  • freezed: Freezed code generation
  • flutter_gen_runner: Asset code generation

Configuration

Localization

Add ARB files to lib/l10n/:

  • app_en.arb - English translations
  • app_es.arb - Spanish translations

Troubleshooting

Code generation errors
# Clear cache and regenerate
flutter packages pub run build_runner clean
flutter packages pub run build_runner build --delete-conflicting-outputs

Support

Support the project

If you find this package helpful, consider supporting its development:

Buy Me A Coffee

Donate

License

MIT License - see LICENSE file

카테고리

의존성

의존성 목록 10 개

소스 저장소

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

아직 데이터가 없습니다.