-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix animation && add doctor features
- Loading branch information
Showing
11 changed files
with
133 additions
and
40 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
打开WSL后出现 0x800701bc 错误 | ||
|
||
原因: WSL内核还未升级 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
打开WSL后提示开启 HyperV... | ||
|
||
原因: 可选功能未开启 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import 'package:arche/arche.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:url_launcher/url_launcher_string.dart'; | ||
import 'package:wslconfigurer/i18n/i18n.dart'; | ||
import 'package:wslconfigurer/models/config.dart'; | ||
import 'package:wslconfigurer/windows/msi.dart'; | ||
|
||
class UpdateKernel extends StatelessWidget { | ||
const UpdateKernel({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Column( | ||
children: [ | ||
ListTile( | ||
title: context.i18nText("install.manual"), | ||
trailing: IconButton( | ||
onPressed: () => | ||
launchUrlString(AppConfigs.wslLinuxKernelUpdateInstallerUrl), | ||
icon: const Icon(Icons.open_in_browser), | ||
), | ||
), | ||
ListTile( | ||
title: context.i18nText("install.automate"), | ||
trailing: IconButton( | ||
onPressed: () { | ||
ComplexDialog.instance | ||
.withContext(context: context) | ||
.withChild( | ||
DownloadMSIProgressDialog( | ||
AppConfigs.wslLinuxKernelUpdateInstallerUrl, | ||
logPath: "installer.log", | ||
), | ||
) | ||
.copy(barrierDismissible: false) | ||
.prompt(); | ||
}, | ||
icon: const Icon(Icons.install_desktop), | ||
), | ||
) | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters