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

View File

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