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