remove unused Overlay in desktop_tab_page.dart and server_page.dart
This commit is contained in:
parent
893f18cdec
commit
0dba013089
@ -64,10 +64,7 @@ class _DesktopTabPageState extends State<DesktopTabPage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final tabWidget = Container(
|
final tabWidget = Container(
|
||||||
child: Overlay(initialEntries: [
|
child: Scaffold(
|
||||||
OverlayEntry(builder: (context) {
|
|
||||||
gFFI.dialogManager.setOverlayState(Overlay.of(context));
|
|
||||||
return Scaffold(
|
|
||||||
backgroundColor: Theme.of(context).backgroundColor,
|
backgroundColor: Theme.of(context).backgroundColor,
|
||||||
body: DesktopTab(
|
body: DesktopTab(
|
||||||
controller: tabController,
|
controller: tabController,
|
||||||
@ -77,10 +74,7 @@ class _DesktopTabPageState extends State<DesktopTabPage> {
|
|||||||
onTap: DesktopTabPage.onAddSetting,
|
onTap: DesktopTabPage.onAddSetting,
|
||||||
isClose: false,
|
isClose: false,
|
||||||
),
|
),
|
||||||
));
|
)));
|
||||||
})
|
|
||||||
]),
|
|
||||||
);
|
|
||||||
return Platform.isMacOS
|
return Platform.isMacOS
|
||||||
? tabWidget
|
? tabWidget
|
||||||
: Obx(
|
: Obx(
|
||||||
|
@ -69,12 +69,8 @@ class _DesktopServerPageState extends State<DesktopServerPage>
|
|||||||
child: Consumer<ServerModel>(
|
child: Consumer<ServerModel>(
|
||||||
builder: (context, serverModel, child) => Container(
|
builder: (context, serverModel, child) => Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border:
|
border: Border.all(color: MyTheme.color(context).border!)),
|
||||||
Border.all(color: MyTheme.color(context).border!)),
|
child: Scaffold(
|
||||||
child: Overlay(initialEntries: [
|
|
||||||
OverlayEntry(builder: (context) {
|
|
||||||
gFFI.dialogManager.setOverlayState(Overlay.of(context));
|
|
||||||
return Scaffold(
|
|
||||||
backgroundColor: Theme.of(context).backgroundColor,
|
backgroundColor: Theme.of(context).backgroundColor,
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
@ -84,10 +80,7 @@ class _DesktopServerPageState extends State<DesktopServerPage>
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
))));
|
||||||
})
|
|
||||||
]),
|
|
||||||
)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user