2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 19:55:27 +00:00

Docs url fix (#654)

* Fix broken docs URL

* Update release noets

* const tweak
This commit is contained in:
Oliver
2025-06-14 09:16:32 +10:00
committed by GitHub
parent 03aba4b4bf
commit 13cb2f9164
2 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,8 @@
### 0.19.0 - June 2025 ### 0.19.0 - June 2025
--- ---
- Replace barcode scanning library for better performance - Replace barcode scanning library for better performance
- Fix broken documentation link
- Updated translations
### 0.18.1 - April 2025 ### 0.18.1 - April 2025
--- ---

View File

@ -10,6 +10,8 @@ import "package:package_info_plus/package_info_plus.dart";
import "package:inventree/l10.dart"; import "package:inventree/l10.dart";
import "package:url_launcher/url_launcher.dart"; import "package:url_launcher/url_launcher.dart";
const String DOCS_URL = "https://docs.inventree.org/app";
class InvenTreeAboutWidget extends StatelessWidget { class InvenTreeAboutWidget extends StatelessWidget {
const InvenTreeAboutWidget(this.info) : super(); const InvenTreeAboutWidget(this.info) : super();
@ -39,10 +41,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
Future <void> _openDocs() async { Future <void> _openDocs() async {
var docsUrl = Uri( var docsUrl = Uri.parse(DOCS_URL);
scheme: "https",
host: "docs.inventree.org",
path: "en/latest/app/app/");
if (await canLaunchUrl(docsUrl)) { if (await canLaunchUrl(docsUrl)) {
await launchUrl(docsUrl); await launchUrl(docsUrl);
@ -192,7 +191,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
tiles.add( tiles.add(
ListTile( ListTile(
title: Text(L10().documentation), title: Text(L10().documentation),
subtitle: Text("https://docs.inventree.org/app"), subtitle: Text(DOCS_URL),
leading: Icon(TablerIcons.book, color: COLOR_ACTION), leading: Icon(TablerIcons.book, color: COLOR_ACTION),
onTap: () { onTap: () {
_openDocs(); _openDocs();