You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For this section of my code, although my asset path is correct and I have the latest version of the Flutter_3d_obj, the ThreeDModel lines show the error of 'The method 'ThreeDModel' isn't defined for the type '_BoardState' and that the import of this dependency is unused.
The text was updated successfully, but these errors were encountered:
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Cylinder Board'),
),
body: Container(
color: Colors.white,
child: Stack(
children: [
Positioned(
left: 0,
top: 0,
child: ThreeDModel(
path: 'assets/board(1).obj',
scale: Vector3.all(0.02),
rotation: Vector3(0, 1, 0),
lighting: true,
texturePath: 'assets/board(2).mtl',
),
),
...cylinders.map((cylinder) {
return Positioned(
left: cylinder.x,
top: cylinder.y,
child: ThreeDModel(
path: 'assets/cylinder (1).obj',
scale: Vector3.all(0.02),
rotation: Vector3(0, 1, 0),
lighting: true,
texturePath: 'assets/cylinder (1).mtl',
),
);
}).toList(),
],
),
),
);
}
}
For this section of my code, although my asset path is correct and I have the latest version of the Flutter_3d_obj, the ThreeDModel lines show the error of 'The method 'ThreeDModel' isn't defined for the type '_BoardState' and that the import of this dependency is unused.
The text was updated successfully, but these errors were encountered: