replace offstage with if-else for LinearProgressIndicator in dialog

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-08-18 16:13:24 +08:00
parent a7163c6a04
commit 979203cbdb
7 changed files with 59 additions and 55 deletions

View File

@@ -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),
],
),
),