flutter_scene 0.2.0 flutter_scene: ^0.2.0 copied to clipboard
3D scene widgets for Flutter.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_scene
With Flutter:
$ flutter pub add flutter_scene
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_scene: ^0.2.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_scene/asset_helpers.dart';
import 'package:flutter_scene/camera.dart';
import 'package:flutter_scene/geometry/geometry.dart';
import 'package:flutter_scene/material/environment.dart';
import 'package:flutter_scene/material/material.dart';
import 'package:flutter_scene/material/physically_based_material.dart';
import 'package:flutter_scene/material/unlit_material.dart';
import 'package:flutter_scene/mesh.dart';
import 'package:flutter_scene/node.dart';
import 'package:flutter_scene/scene.dart';
import 'package:flutter_scene/scene_encoder.dart';
import 'package:flutter_scene/shaders.dart';
import 'package:flutter_scene/skin.dart';
import 'package:flutter_scene/surface.dart';