v1.3.0+56
All checks were successful
Flutter Schmutter / build (push) Successful in 3m54s

This commit is contained in:
2025-06-16 15:05:39 +02:00
parent 2a500144f5
commit 14081489cc
22 changed files with 820 additions and 538 deletions

12
lib/utils/appversion.dart Normal file
View File

@ -0,0 +1,12 @@
import 'package:flutter/services.dart';
class AppVersion {
static late String version;
static Future<void> init() async {
final String yaml = await rootBundle.loadString('pubspec.yaml');
final RegExpMatch? match = RegExp(r'^version:\s*(.*)$', multiLine: true).firstMatch(yaml);
final String? v = match?.group(1)!.replaceAll('"', '').replaceAll("'", '').trim();
version = v ?? "";
}
}