diff --git a/assets/release_notes.md b/assets/release_notes.md index bed00622..e02d1010 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -1,6 +1,10 @@ ## 0.1.0 - February 2021 --- -This is the initial release of the InvenTree app. Available features as described below: +This is the initial release of the InvenTree app. + +InvenTree documentation available at https://inventree.rtfd.io + +Available features as described below: - Initial app version release - Navigate through Part tree diff --git a/lib/l10n b/lib/l10n index 8114d3a6..0a196087 160000 --- a/lib/l10n +++ b/lib/l10n @@ -1 +1 @@ -Subproject commit 8114d3a69dd90421e546d9cf08e10512eb5ca066 +Subproject commit 0a196087238e13ddba282ce36c56b87fe1ad6fe5 diff --git a/lib/settings/settings.dart b/lib/settings/settings.dart index 96bd03c0..3abf8438 100644 --- a/lib/settings/settings.dart +++ b/lib/settings/settings.dart @@ -10,6 +10,7 @@ import 'package:flutter/services.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:sentry_flutter/sentry_flutter.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; +import 'package:url_launcher/url_launcher.dart'; import 'login.dart'; @@ -29,6 +30,8 @@ class _InvenTreeSettingsState extends State { final _scaffoldKey = GlobalKey(); final _bugKey = GlobalKey(); + final String docsUrl = "https://inventree.rtfd.io"; + @override Widget build(BuildContext context) { return Scaffold( @@ -54,6 +57,15 @@ class _InvenTreeSettingsState extends State { onTap: _about, ), + ListTile( + title: Text(I18N.of(context).documentation), + subtitle: Text(docsUrl), + leading: FaIcon(FontAwesomeIcons.book), + onTap: () { + _openDocs(); + }, + ), + ListTile( title: Text(I18N.of(context).reportBug), subtitle: Text("Report bug or suggest new feature"), @@ -67,6 +79,13 @@ class _InvenTreeSettingsState extends State { ); } + + void _openDocs() async { + if (await canLaunch(docsUrl)) { + await launch(docsUrl); + } + } + void _editServerSettings() async { List profiles = await UserProfileDBManager().getAllProfiles(); diff --git a/pubspec.yaml b/pubspec.yaml index 35fca75a..7f7623ec 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,7 +7,7 @@ description: InvenTree stock management # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.0.1 +version: 0.1.0 environment: sdk: ">=2.1.0 <3.0.0"