example project fixes

This commit is contained in:
Nick Fisher
2023-11-09 11:22:56 +08:00
parent 2db353cc3b
commit e1141098d0
2 changed files with 3 additions and 8 deletions

View File

@@ -173,7 +173,7 @@ class _AssetSubmenuState extends State<AssetSubmenu> {
ExampleWidgetState.buster = null; ExampleWidgetState.buster = null;
} }
}, },
child: Text(ExampleWidgetState.shapes == null child: Text(ExampleWidgetState.buster == null
? 'Load buster' ? 'Load buster'
: 'Remove buster')), : 'Remove buster')),
MenuItemButton( MenuItemButton(
@@ -189,7 +189,7 @@ class _AssetSubmenuState extends State<AssetSubmenu> {
ExampleWidgetState.flightHelmet = null; ExampleWidgetState.flightHelmet = null;
} }
}, },
child: Text(ExampleWidgetState.shapes == null child: Text(ExampleWidgetState.flightHelmet == null
? 'Load flight helmet' ? 'Load flight helmet'
: 'Remove flight helmet')), : 'Remove flight helmet')),
MenuItemButton( MenuItemButton(

View File

@@ -88,12 +88,7 @@ class _CameraSubmenuState extends State<CameraSubmenu> {
height: 300, height: 300,
width: 300, width: 300,
color: Colors.white, color: Colors.white,
child: Column( child: Text(frustum.toString())));
children: frustum
.map((vector) => Text(vector.storage
.map((v) => v.toStringAsFixed(2))
.join(",")))
.toList())));
}); });
}, },
child: const Text("Get frustum")), child: const Text("Get frustum")),