mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-18 18:01:30 +03:00
replace offstage with if-else for LinearProgressIndicator in dialog
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -2065,9 +2065,9 @@ void changeSocks5Proxy() async {
|
||||
),
|
||||
],
|
||||
),
|
||||
Offstage(
|
||||
offstage: !isInProgress,
|
||||
child: const LinearProgressIndicator().marginOnly(top: 8))
|
||||
// NOT use Offstage to wrap LinearProgressIndicator
|
||||
if (isInProgress)
|
||||
const LinearProgressIndicator().marginOnly(top: 8),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -182,8 +182,8 @@ class _InstallPageBodyState extends State<_InstallPageBody>
|
||||
.marginOnly(bottom: em),
|
||||
InkWell(
|
||||
hoverColor: Colors.transparent,
|
||||
onTap: () =>
|
||||
launchUrlString('https://rustdesk.com/privacy.html'),
|
||||
onTap: () => launchUrlString(
|
||||
'https://rustdesk.com/privacy.html'),
|
||||
child: Tooltip(
|
||||
message: 'https://rustdesk.com/privacy.html',
|
||||
child: Row(children: [
|
||||
@@ -204,11 +204,10 @@ class _InstallPageBodyState extends State<_InstallPageBody>
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Obx(() => Offstage(
|
||||
offstage: !showProgress.value,
|
||||
child:
|
||||
LinearProgressIndicator().marginOnly(right: 10),
|
||||
)),
|
||||
// NOT use Offstage to wrap LinearProgressIndicator
|
||||
child: Obx(() => showProgress.value
|
||||
? LinearProgressIndicator().marginOnly(right: 10)
|
||||
: Offstage()),
|
||||
),
|
||||
Obx(
|
||||
() => OutlinedButton.icon(
|
||||
|
||||
Reference in New Issue
Block a user