return child widget in gesture detector widget even when viewer is not yet initialized

This commit is contained in:
Nick Fisher
2024-05-17 14:51:36 +08:00
parent 17f7a2931f
commit 3c186eea37

View File

@@ -63,7 +63,7 @@ class FilamentGestureDetector extends StatelessWidget {
future: controller.initialized, future: controller.initialized,
builder: (_, initialized) { builder: (_, initialized) {
if (initialized.data != true) { if (initialized.data != true) {
return Container(); return child ?? Container();
} }
if (kIsWeb || Platform.isLinux || if (kIsWeb || Platform.isLinux ||
Platform.isWindows || Platform.isWindows ||