add fixes for setting camera

This commit is contained in:
Nick Fisher
2022-02-07 13:19:20 +08:00
parent acec3fc2e1
commit b28097b054
7 changed files with 228 additions and 183 deletions

View File

@@ -83,15 +83,21 @@ class _MyAppState extends State<MyApp> {
_filamentController.zoom(-1.0);
},
child: const Text('zoom in')),
ElevatedButton(
onPressed: () {
_filamentController.zoom(1.0);
},
child: const Text('zoom out')),
ElevatedButton(
onPressed: () {
_filamentController.setCamera("Camera.001");
},
child: const Text('Set Camera')),
Builder(builder:(innerCtx) => ElevatedButton(
onPressed: () async {
final names = await _filamentController
.getTargetNames("Cube");
.getTargetNames("Cube.001");
await showDialog(
builder: (ctx) {