flutter_3d_obj 0.0.4 flutter_3d_obj: ^0.0.4 copied to clipboard
A new flutter package to render wavefront obj files into a canvas.
import 'package:flutter/material.dart';
import 'package:flutter_3d_obj/flutter_3d_obj.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter 3D Demo',
home: new Scaffold(
appBar: new AppBar(
title: const Text("Flutter 3D"),
),
body:new Center(
child: new Object_3D(size: const Size(400.0, 400.0),path: "assets/file.obj",asset:true),
),
),
);
}
}