Dependencies

Key concepts

It's super common for projects to use external dependencies, also known as libraries or packages in the case of Flutter. These packages give you access to extra functionality, connections to third party services, or utilities for your app, among others.

Under that premise, Waoo App Builder is designed to support as many packages as you consider necessary. This way your project will never be blocked by a lack of functionality you want to implement.

Add dependencies:

To add a new dependency, you can do so by entering the "Settings" tab under the "Dependencies" tab. You will find a screen similar to the following where you can add your dependencies:

Dependency configuration:

The current supported dependency configurations are the same as those supported by the pubspec.yaml defined in the following link:

https://dart.dev/tools/pub/dependencies

At the end/bottom of the "Add dependency" panel you will find a checkbox where you can indicate if your dependency is exclusive for development (dev_dependencies). These dependencies will be available in your project for development, but will not be available in the production build.

Dependencies added by default:

By default, Waoo App Builder already adds the minimal libraries for your project to work so you don't need to add them in the dependencies panel. The added libraries can be found updated in the table below:

Using dependencies

To use a dependency you added to your project, use the "Custom Logic Code" and "Custom UI Code" nodes as needed. In those nodes you will be able to indicate your code with the necessary imports.

Imports are sanitized at project build time so don't worry if you have duplicated imports in your code (However just add imports where needed).

Last updated