return child widget in gesture detector widget even when viewer is not yet initialized
This commit is contained in:
@@ -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 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user