flutter_scene_importer 0.6.0-0 flutter_scene_importer: ^0.6.0-0 copied to clipboard
An offline 3D model importer for Flutter. Converts glTF files into the Flutter Scene model format.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_scene_importer
With Flutter:
$ flutter pub add flutter_scene_importer
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_scene_importer: ^0.6.0-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_importer/build_hooks.dart';
import 'package:flutter_scene_importer/constants.dart';
import 'package:flutter_scene_importer/flatbuffer.dart';
import 'package:flutter_scene_importer/generated/scene_impeller.fb_flatbuffers.dart';
import 'package:flutter_scene_importer/importer.dart';
import 'package:flutter_scene_importer/offline_import.dart';
import 'package:flutter_scene_importer/third_party/flat_buffers.dart';