mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-14 11:15:26 +00:00
Docs url fix (#654)
* Fix broken docs URL * Update release noets * const tweak
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
### 0.19.0 - June 2025
|
||||
---
|
||||
- Replace barcode scanning library for better performance
|
||||
- Fix broken documentation link
|
||||
- Updated translations
|
||||
|
||||
### 0.18.1 - April 2025
|
||||
---
|
||||
|
@ -10,6 +10,8 @@ import "package:package_info_plus/package_info_plus.dart";
|
||||
import "package:inventree/l10.dart";
|
||||
import "package:url_launcher/url_launcher.dart";
|
||||
|
||||
const String DOCS_URL = "https://docs.inventree.org/app";
|
||||
|
||||
class InvenTreeAboutWidget extends StatelessWidget {
|
||||
|
||||
const InvenTreeAboutWidget(this.info) : super();
|
||||
@ -39,10 +41,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
|
||||
|
||||
Future <void> _openDocs() async {
|
||||
|
||||
var docsUrl = Uri(
|
||||
scheme: "https",
|
||||
host: "docs.inventree.org",
|
||||
path: "en/latest/app/app/");
|
||||
var docsUrl = Uri.parse(DOCS_URL);
|
||||
|
||||
if (await canLaunchUrl(docsUrl)) {
|
||||
await launchUrl(docsUrl);
|
||||
@ -192,7 +191,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
|
||||
tiles.add(
|
||||
ListTile(
|
||||
title: Text(L10().documentation),
|
||||
subtitle: Text("https://docs.inventree.org/app"),
|
||||
subtitle: Text(DOCS_URL),
|
||||
leading: Icon(TablerIcons.book, color: COLOR_ACTION),
|
||||
onTap: () {
|
||||
_openDocs();
|
||||
|
Reference in New Issue
Block a user