use stack instead of visibility
This commit is contained in:
+8
-5
@@ -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])),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user