Enabled changelog overflow

This commit is contained in:
JHubi1 2024-06-18 17:18:34 +02:00
parent 0401145987
commit 5db1288228
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
1 changed files with 15 additions and 17 deletions

View File

@ -43,10 +43,10 @@ Future<bool> updatesSupported(Function setState,
(installerApps
.contains((await InstallReferrer.app).packageName ?? ""))) {
returnValue = false;
// if (await InstallReferrer.referrer ==
// InstallationAppReferrer.androidDebug) {
// returnValue = true;
// }
if (await InstallReferrer.referrer ==
InstallationAppReferrer.androidDebug) {
returnValue = true;
}
}
if (!repoUrl.startsWith("https://github.com")) {
returnValue = false;
@ -80,7 +80,7 @@ void checkUpdate(Function setState) async {
var repo = repoUrl.split("/");
currentVersion = (await PackageInfo.fromPlatform()).version;
// currentVersion = "1.0.0";
currentVersion = "1.0.0";
String? version;
try {
@ -127,18 +127,16 @@ void updateDialog(BuildContext context, Function title) {
return AlertDialog(
title:
Text(AppLocalizations.of(context)!.settingsUpdateDialogTitle),
content: SizedBox(
width: 200,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
content: Column(mainAxisSize: MainAxisSize.min, children: [
Text(AppLocalizations.of(context)!
.settingsUpdateDialogDescription),
title(AppLocalizations.of(context)!.settingsUpdateChangeLog),
MarkdownBody(data: updateChangeLog ?? "Nothing"),
],
),
),
Flexible(
child: SingleChildScrollView(
child: MarkdownBody(
data: updateChangeLog ?? "No changelog given.",
shrinkWrap: true)))
]),
actions: [
TextButton(
onPressed: () {