remove unused Overlay in desktop_tab_page.dart and server_page.dart

This commit is contained in:
csf 2023-02-08 21:54:48 +09:00
parent 893f18cdec
commit 0dba013089
2 changed files with 24 additions and 37 deletions

View File

@ -64,10 +64,7 @@ class _DesktopTabPageState extends State<DesktopTabPage> {
@override
Widget build(BuildContext context) {
final tabWidget = Container(
child: Overlay(initialEntries: [
OverlayEntry(builder: (context) {
gFFI.dialogManager.setOverlayState(Overlay.of(context));
return Scaffold(
child: Scaffold(
backgroundColor: Theme.of(context).backgroundColor,
body: DesktopTab(
controller: tabController,
@ -77,10 +74,7 @@ class _DesktopTabPageState extends State<DesktopTabPage> {
onTap: DesktopTabPage.onAddSetting,
isClose: false,
),
));
})
]),
);
)));
return Platform.isMacOS
? tabWidget
: Obx(

View File

@ -69,12 +69,8 @@ class _DesktopServerPageState extends State<DesktopServerPage>
child: Consumer<ServerModel>(
builder: (context, serverModel, child) => Container(
decoration: BoxDecoration(
border:
Border.all(color: MyTheme.color(context).border!)),
child: Overlay(initialEntries: [
OverlayEntry(builder: (context) {
gFFI.dialogManager.setOverlayState(Overlay.of(context));
return Scaffold(
border: Border.all(color: MyTheme.color(context).border!)),
child: Scaffold(
backgroundColor: Theme.of(context).backgroundColor,
body: Center(
child: Column(
@ -84,10 +80,7 @@ class _DesktopServerPageState extends State<DesktopServerPage>
],
),
),
);
})
]),
)));
))));
}
@override