Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李朝发
rustdesk
Commits
31550452
Commit
31550452
authored
Sep 05, 2022
by
21pages
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove overlay of PortForward page because it will cause rebuilding when closing
msgbox Signed-off-by:
21pages
<
pages21@163.com
>
parent
48481884
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
38 deletions
+31
-38
port_forward_page.dart
flutter/lib/desktop/pages/port_forward_page.dart
+31
-38
No files found.
flutter/lib/desktop/pages/port_forward_page.dart
View file @
31550452
...
@@ -70,45 +70,38 @@ class _PortForwardPageState extends State<PortForwardPage>
...
@@ -70,45 +70,38 @@ class _PortForwardPageState extends State<PortForwardPage>
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
super
.
build
(
context
);
super
.
build
(
context
);
return
Overlay
(
initialEntries:
[
return
Scaffold
(
OverlayEntry
(
builder:
(
context
)
{
backgroundColor:
MyTheme
.
color
(
context
).
grayBg
,
_ffi
.
dialogManager
.
setOverlayState
(
Overlay
.
of
(
context
));
body:
FutureBuilder
(
future:
()
async
{
return
Scaffold
(
if
(!
isRdp
)
{
backgroundColor:
MyTheme
.
color
(
context
).
grayBg
,
refreshTunnelConfig
();
body:
FutureBuilder
(
future:
()
async
{
}
if
(!
isRdp
)
{
}(),
builder:
(
context
,
snapshot
)
{
refreshTunnelConfig
();
if
(
snapshot
.
connectionState
==
ConnectionState
.
done
)
{
}
return
Container
(
}(),
builder:
(
context
,
snapshot
)
{
decoration:
BoxDecoration
(
if
(
snapshot
.
connectionState
==
ConnectionState
.
done
)
{
border:
Border
.
all
(
return
Container
(
width:
20
,
color:
MyTheme
.
color
(
context
).
grayBg
!)),
decoration:
BoxDecoration
(
child:
Column
(
border:
Border
.
all
(
crossAxisAlignment:
CrossAxisAlignment
.
stretch
,
width:
20
,
color:
MyTheme
.
color
(
context
).
grayBg
!)),
children:
[
child:
Column
(
buildPrompt
(
context
),
crossAxisAlignment:
CrossAxisAlignment
.
stretch
,
Flexible
(
children:
[
child:
Container
(
buildPrompt
(
context
),
decoration:
BoxDecoration
(
Flexible
(
color:
MyTheme
.
color
(
context
).
bg
,
child:
Container
(
border:
Border
.
all
(
width:
1
,
color:
MyTheme
.
border
)),
decoration:
BoxDecoration
(
child:
color:
MyTheme
.
color
(
context
).
bg
,
widget
.
isRDP
?
buildRdp
(
context
)
:
buildTunnel
(
context
),
border:
),
Border
.
all
(
width:
1
,
color:
MyTheme
.
border
)),
child:
widget
.
isRDP
?
buildRdp
(
context
)
:
buildTunnel
(
context
),
),
),
],
),
),
);
],
}
),
return
const
Offstage
(
);
);
}),
}
);
return
const
Offstage
(
);
})
})
,
]
);
);
}
}
buildPrompt
(
BuildContext
context
)
{
buildPrompt
(
BuildContext
context
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment