example project fixes
This commit is contained in:
@@ -99,9 +99,11 @@ class _ExampleWidgetState extends State<ExampleWidget> {
|
||||
Align(
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: Container(
|
||||
height: 30,
|
||||
padding: const EdgeInsets.only(bottom: 30),
|
||||
height: 100,
|
||||
color: Colors.white,
|
||||
child: Row(children: [
|
||||
child:
|
||||
Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
||||
ControllerMenu(
|
||||
controller: _filamentController,
|
||||
onControllerDestroyed: () {},
|
||||
@@ -116,8 +118,8 @@ class _ExampleWidgetState extends State<ExampleWidget> {
|
||||
]))),
|
||||
_filamentController == null
|
||||
? Container()
|
||||
: Align(
|
||||
alignment: Alignment.topLeft,
|
||||
: Padding(
|
||||
padding: const EdgeInsets.only(top: 40, left: 20, right: 20),
|
||||
child: CameraMatrixOverlay(controller: _filamentController!),
|
||||
),
|
||||
_filamentController == null
|
||||
|
||||
@@ -23,7 +23,8 @@ class _SceneMenuState extends State<SceneMenu> {
|
||||
@override
|
||||
void didUpdateWidget(SceneMenu oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
if (widget.controller != oldWidget.controller ||
|
||||
if (widget.controller != null &&
|
||||
widget.controller != oldWidget.controller ||
|
||||
widget.controller!.hasViewer != oldWidget.controller!.hasViewer) {
|
||||
setState(() {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user