fluid_simulation 1.0.3 fluid_simulation: ^1.0.3 copied to clipboard
A widget that renders a fluid simulation, based on double-density relaxation. Supports interactivity via tap or mouse hover and device orientation.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add fluid_simulation
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
fluid_simulation: ^1.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:fluid_simulation/fluid_simulation.dart';