2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-30 22:46:49 +00:00

Update release notes (#302)

This commit is contained in:
Oliver 2023-04-09 00:14:09 +10:00 committed by GitHub
parent a8f87e2f5a
commit bf8a65fadf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 4 deletions

View File

@ -4,6 +4,7 @@
### 0.11.0 - April 2023 ### 0.11.0 - April 2023
--- ---
- Major UI updates - [see the documentation](https://docs.inventree.org/en/latest/app/app/)
- Adds globally accessible action button for "search" - Adds globally accessible action button for "search"
- Adds globally accessible action button for "barcode scan" - Adds globally accessible action button for "barcode scan"
- Implement context actions using floating actions buttons - Implement context actions using floating actions buttons

View File

@ -10,6 +10,16 @@ class ReleaseNotesWidget extends StatelessWidget {
final String releaseNotes; final String releaseNotes;
// Callback function when a link is clicked in the markdown
Future<void> openLink(String url) async {
final link = Uri.parse(url);
if (await canLaunchUrl(link)) {
await launchUrl(link);
}
}
@override @override
Widget build (BuildContext context) { Widget build (BuildContext context) {
return Scaffold( return Scaffold(
@ -19,6 +29,12 @@ class ReleaseNotesWidget extends StatelessWidget {
body: Markdown( body: Markdown(
selectable: false, selectable: false,
data: releaseNotes, data: releaseNotes,
onTapLink: (url, href, title) {
var link = href ?? "";
if (link.isNotEmpty) {
openLink(link);
}
},
) )
); );
} }
@ -31,9 +47,7 @@ class CreditsWidget extends StatelessWidget {
final String credits; final String credits;
/* // Callback function when a link is clicked in the markdown
* Callback function when a link is clicked in the markdown
*/
Future<void> openLink(String url) async { Future<void> openLink(String url) async {
final link = Uri.parse(url); final link = Uri.parse(url);

View File

@ -1,7 +1,7 @@
name: inventree name: inventree
description: InvenTree stock management description: InvenTree stock management
version: 0.10.2+57 version: 0.11.0+58
environment: environment:
sdk: ">=2.16.0 <3.0.0" sdk: ">=2.16.0 <3.0.0"