Adds instruction to embed update information in appimage

This commit is contained in:
zontreck 2024-07-24 14:30:00 -07:00
parent d117972d0c
commit 098d8479c8
5 changed files with 20 additions and 5 deletions

View file

@ -1 +1 @@
const VERSION = "1.0724.24+0706";
const VERSION = "1.0724.24+1429";

View file

@ -1,3 +1,5 @@
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:nbteditor/Editor.dart';
import 'package:nbteditor/pages/AddPage.dart';
@ -39,7 +41,10 @@ class StartPage extends StatefulWidget {
class StartPageState extends State<StartPage> {
@override
void didChangeDependencies() {
checkPermissions();
if (Platform.isAndroid || Platform.isIOS || Platform.isMacOS)
checkPermissions();
else
Navigator.pushReplacementNamed(context, "/edit");
}
Future<void> checkPermissions() async {
@ -56,7 +61,14 @@ class StartPageState extends State<StartPage> {
Widget build(BuildContext context) {
return const Scaffold(
body: Column(
children: [Image(image: AssetImage("Icons/PNG/nbteditor.png"))],
children: [
SizedBox(height: 100),
Image(
image: AssetImage("Icons/PNG/nbteditor.png"),
height: 500,
width: 500,
)
],
),
);
}