Introduction
Getting started
Learn how to get up and running with Flutter Forge in under thirty minutes.
Installing dependencies
- Add the flutter_forge package as a dependency in your
pubspec.yaml
. - Install the dependencies with
flutter pub get
.
Build modular Flutter Components without even thinking about it.
Flutter Forge is a library that facilitates building complex, state based, modular, compossible, testable Flutter Components in isolation.
void main() { group('Counter Store', () { test('when sent IncrementCounterByOne action it increments the count', () async { final store = TestStore( initialState: const counter.State(count: 0), reducer: counter.counterReducer, environment: counter.Environment());
final results = await store.send(counter.IncrementCounterByOne()); expect(results.length, 1); expect(results[0].action is counter.IncrementCounterByOne, true); expect(results[0].state, const counter.State(count: 1)); }); });}
Introduction
Learn how to get up and running with Flutter Forge in under thirty minutes.
pubspec.yaml
.flutter pub get
.