Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
錯誤修復:某些位置切換頁面時會白屏
Browse files Browse the repository at this point in the history
  • Loading branch information
SiongSng committed Sep 18, 2021
1 parent 3d0d5d7 commit e78fb60
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
9 changes: 4 additions & 5 deletions lib/Screen/DownloadCurseModPack.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,11 @@ class DownloadCurseModPack_ extends State<DownloadCurseModPack> {
});
}

Navigator.of(context).pop();
Navigator.push(
context,
new MaterialPageRoute(builder: (context) => LauncherHome()),
navigator.pop();
navigator.push(
MaterialPageRoute(builder: (context) => HomePage()),
);

showDialog(
context: context,
builder: (BuildContext context) {
Expand Down
9 changes: 4 additions & 5 deletions lib/Screen/FTBModPack.dart
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,10 @@ class Task_ extends State<Task> {
"icon.png"))
.writeAsBytesSync(response.bodyBytes);
});

Navigator.of(context).pop();
Navigator.push(
context,
new MaterialPageRoute(builder: (context) => LauncherHome()),

navigator.pop();
navigator.push(
MaterialPageRoute(builder: (context) => HomePage()),
);

bool new_ = true;
Expand Down
7 changes: 3 additions & 4 deletions lib/Widget/DownloadCurseModPack.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,9 @@ class DownloadCurseModPack_ extends State<DownloadCurseModPack> {
});
}

Navigator.of(context).pop();
Navigator.push(
context,
new MaterialPageRoute(builder: (context) => LauncherHome()),
navigator.pop();
navigator.push(
MaterialPageRoute(builder: (context) => HomePage()),
);

showDialog(
Expand Down

0 comments on commit e78fb60

Please sign in to comment.