use stack instead of visibility

This commit is contained in:
Fabian Freund
2025-10-30 07:00:05 +01:00
parent 6fa8a56643
commit 3955859e5b
@@ -218,11 +218,9 @@ class _BrowserViewState extends ConsumerState<BrowserView>
},
);
return Visibility(
visible: hasTab,
maintainState: true,
replacement: SizedBox.expand(child: Container(color: Colors.grey[800])),
child: GeckoView(
return Stack(
children: [
GeckoView(
preInitializationStep: () async {
await ref
.read(eventServiceProvider)
@@ -283,6 +281,11 @@ class _BrowserViewState extends ConsumerState<BrowserView>
}
},
),
if (!hasTab)
Positioned.fill(
child: SizedBox.expand(child: Container(color: Colors.grey[800])),
),
],
);
}