Skip to content

hardy716/fsd_flutter_template

Repository files navigation

🏗️ FSD Flutter Template

Minimal Flutter Template with Feature-Sliced Design

✨ Key Features

  • 🎯 Feature-Sliced Design - Modular structure for maximum scalability
  • 🔥 Multi-platform Support - Supports all platforms: Android, iOS, Web, Desktop
  • 💡 Code Quality Management - Static analysis and code quality assurance through flutter_lints

🛠️ Tech Stack

📦 Framework

  • Flutter ^3.35.1
  • Dart ^3.9.0, DevTools ^2.48.0

🔧 Development Tools

  • flutter_lints ^5.0.0 - Official Flutter lint rules
  • flutter_test - Widget and unit testing

⚙️ Architecture

  • Feature-Sliced Design (FSD)

🏗️ Project Structure

fsd_flutter_template/
├── 📱 android/               # Android Platform
├── 🍎 ios/                   # iOS Platform
├── 🌐 web/                   # Web Platform
├── 🖥️  linux/                # Linux Platform
├── 🖥️  macos/                # macOS Platform
├── 🖥️  windows/              # Windows Platform
├── 📚 lib/                   # Main source code
│   ├── 🚀 app/               # App-level (Routing, Theme...)
│   ├── 🏢 entities/          # Business entities
│   ├── ⭐ features/          # Feature modules (*single)
│   ├── 📄 pages/             # Page components
│   ├── 🔧 shared/            # Shared utilities and UI components
│   ├── 🧩 widgets/           # Reusable widgets or meaningful UI components
│   └── 🎯 main.dart          # App entry point
├── 🧪 test/                  # Test files
├── 📋 pubspec.yaml           # Dependencies and project configuration
└── ⚙️  analysis_options.yaml # Code analysis configuration

🚀 Getting Started

🪧 Install

🔧 Environment Setup

# Check Flutter channel (stable recommended)
flutter channel stable

# Upgrade Flutter
flutter upgrade

# Update project dependencies
flutter pub upgrade

▶️ Running the App

# Run in development mode (with Hot Reload)
flutter run

# Run on specific platform
flutter run -d chrome          # Web
flutter run -d macos           # macOS
flutter run -d windows         # Windows
flutter run -d linux           # Linux

🔍 Code Quality Management

# Run static analysis
flutter analyze

# Code formatting
dart format .

# Check lint rules
dart analyze --fatal-infos

🔗 Flutter with FSD Examples...

📞 Contact

About

Minimal Flutter Template with Feature-Sliced Design

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •