Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/khode-io/nest-dart/llms.txt

Use this file to discover all available pages before exploring further.

Installation

Nest Dart provides three packages depending on your platform. Choose the package that matches your project type.

Requirements

All Nest Dart packages require Dart SDK 3.8.1 or higher.
  • Dart SDK: ^3.8.1
  • Flutter: Latest stable version (for nest_flutter)
  • Dart Frog: ^1.1.0 (for nest_frog)

Choose your package

nest_core

For pure Dart applications and CLI tools

nest_flutter

For Flutter mobile and web applications

nest_frog

For Dart Frog backend applications

Installing nest_core

Use nest_core for pure Dart applications, command-line tools, or as the foundation for other packages.
1

Add dependency

Add nest_core to your pubspec.yaml:
pubspec.yaml
dependencies:
  nest_core: ^0.1.1
2

Install packages

Run the following command to install:
dart pub get
3

Import the package

Import nest_core in your Dart files:
import 'package:nest_core/nest_core.dart';
nest_core is automatically included when you install nest_flutter or nest_frog, so you don’t need to add it separately for those platforms.

Installing nest_flutter

Use nest_flutter for Flutter applications on mobile, web, desktop, or any Flutter-supported platform.
1

Add dependencies

Add nest_flutter to your pubspec.yaml:
pubspec.yaml
dependencies:
  flutter:
    sdk: flutter
  nest_flutter: ^0.1.3
2

Install packages

Run the following command to install:
flutter pub get
3

Import the package

Import nest_flutter in your Dart files:
import 'package:nest_flutter/nest_flutter.dart';

Flutter platform support

nest_flutter works on all Flutter platforms:
  • ✅ Android
  • ✅ iOS
  • ✅ Web
  • ✅ macOS
  • ✅ Windows
  • ✅ Linux

Additional dependencies

nest_flutter includes go_router for routing integration. If you need additional routing features, refer to the go_router documentation.
The package automatically includes:
  • nest_core - Core dependency injection system
  • go_router - Declarative routing for Flutter

Installing nest_frog

Use nest_frog for Dart Frog backend applications and REST APIs.
1

Add dependencies

Add nest_frog to your pubspec.yaml:
pubspec.yaml
dependencies:
  nest_frog: ^0.1.2
  dart_frog: ^1.1.0
2

Install packages

Run the following command to install:
dart pub get
3

Import the package

Import nest_frog in your Dart files:
import 'package:nest_frog/nest_frog.dart';
Make sure you have Dart Frog CLI installed. If not, install it globally:
dart pub global activate dart_frog_cli

Backend dependencies

The package automatically includes:
  • nest_core - Core dependency injection system
  • dart_frog - Fast, minimalistic backend framework

Multiple packages

If you’re building a full-stack Dart application, you can use multiple Nest Dart packages in different projects:
dependencies:
  flutter:
    sdk: flutter
  nest_flutter: ^0.1.3
You can create a shared package with nest_core that contains common business logic and services, then use it in both your Flutter app and Dart Frog backend.

Verify installation

After installation, verify that everything is working by creating a simple module:
import 'package:nest_core/nest_core.dart';

class TestModule extends Module {
  @override
  void providers(Locator locator) {
    print('Nest Dart installed successfully!');
  }
}

void main() async {
  final container = ApplicationContainer();
  await container.registerModule(TestModule());
}
Run the file:
dart run your_file.dart
You should see the success message printed to the console.

Next steps

1

Quick start

Follow the quickstart guide to build your first application
2

Learn core concepts

3

Platform guides

Explore Flutter or Dart Frog specific features

Troubleshooting

Version conflicts

If you encounter version conflicts, ensure your Dart SDK version meets the minimum requirement:
dart --version
Should output version 3.8.1 or higher.

Dependency resolution issues

If pub get fails, try clearing your pub cache:
dart pub cache clean
dart pub get

Need help?

GitHub Issues

Report issues or ask questions on GitHub

Build docs developers (and LLMs) love