Skip to content

Getting started

Before anything, you need to be aware that Reactter is distributed on two packages:

  • Reactter: The core package that contains the core functionalities of Reactter. It is recommended to use this package if you are developing a Dart application.
  • Flutter Reactter: This package includes the core package and additional Flutter features. It is recommended to use this package if you are developing a Flutter application.

Installation

To follow this guide, you’ll need an existing Dart/Flutter project. If you don’t get one yet, head to here.

Once you have your project set up, proceed to install the package using one of the following methods:

Automatic installation

Add the package on your project by running the following command:

Terminal window
dart pub add reactter
Terminal window
flutter pub add flutter_reactter

Manual installation

Add the package on your project by adding the following line to your pubspec.yaml file:

pubspec.yaml
dependencies:
reactter: ^7.2.0
pubspec.yaml
dependencies:
flutter_reactter: ^7.2.0

After adding the package to your pubspec.yaml file, run the following command to install the package:

Terminal window
dart pub get
Terminal window
flutter pub get

Additional setup

This step is optional but recommended. Use the Reactter Lint package to enforce best practices and conventions in your project:

Terminal window
dart pub add reactter_lint

Additionally, if you’re developing with Visual Studio Code, it is a good idea to use Reactter Snippets for improving productivity.

Usage

To use Reactter, you must import the package into your Dart file where you need it:

1
import 'package:reactter/reactter.dart';
1
import 'package:flutter_reactter/flutter_reactter.dart';

That’s it! You are now ready to use Reactter in your Dart/Flutter project.

What’s next?

If you are new to Reactter, you can start by reading the Core Concepts section. This will help you understand the basic concepts of Reactter and how to use them in your project.

In this section, the topics you will learn about are: