From 00f9122f3754ed5e7d0639c8093827bb27e25cc5 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Fri, 17 May 2024 14:50:15 +0800 Subject: [PATCH] example project fixes --- .../flutter_filament/example/lib/main.dart | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/flutter_filament_federated/flutter_filament/example/lib/main.dart b/flutter_filament_federated/flutter_filament/example/lib/main.dart index 86ab865a..03888fa2 100644 --- a/flutter_filament_federated/flutter_filament/example/lib/main.dart +++ b/flutter_filament_federated/flutter_filament/example/lib/main.dart @@ -104,7 +104,9 @@ class ExampleWidgetState extends State { builder: (_, AsyncSnapshot initialized) { var isInitialized = initialized.data == true; - return Stack(children: [ + return Stack( + fit: StackFit.expand, + children: [ if (isInitialized) Positioned.fill( child: ExampleViewport( @@ -181,18 +183,19 @@ class ExampleWidgetState extends State { Expanded(child: Container()), ]))), if (isInitialized) ...[ - EntityListWidget(controller: _plugin.viewer), - Padding( - padding: const EdgeInsets.only(top: 10, left: 20, right: 20), - child: ValueListenableBuilder( - valueListenable: showProjectionMatrices, - builder: (ctx, value, child) => CameraMatrixOverlay( - controller: _plugin.viewer, showProjectionMatrices: value)), - ), - Align( - alignment: Alignment.topRight, - child: PickerResultWidget(controller: _plugin.viewer), - ) + Positioned(top:0, height:50, left:0, right:0, child:Container( + child:EntityListWidget(controller: _plugin.viewer))), + // Padding( + // padding: const EdgeInsets.only(top: 10, left: 20, right: 20), + // child: ValueListenableBuilder( + // valueListenable: showProjectionMatrices, + // builder: (ctx, value, child) => CameraMatrixOverlay( + // controller: _plugin.viewer, showProjectionMatrices: value)), + // ), + // Align( + // alignment: Alignment.topRight, + // child: PickerResultWidget(controller: _plugin.viewer), + // ) ] ]); });