mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-29 14:06:47 +00:00
Add credits file
This commit is contained in:
parent
b293806fe3
commit
af79ee9d11
6
assets/credits.md
Normal file
6
assets/credits.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
## InvenTree App Credits
|
||||||
|
---
|
||||||
|
|
||||||
|
**Sound Files**
|
||||||
|
|
||||||
|
Some sound files have been sourced from [https://www.zapsplat.com](https://www.zapsplat.com)
|
2
lib/l10n
2
lib/l10n
@ -1 +1 @@
|
|||||||
Subproject commit 77f9c0b023ca0622a60b6e4ee4a44d9c02dc4a03
|
Subproject commit 807a0191b4b68a7887ee366dfbe58e2d009207f7
|
@ -27,6 +27,16 @@ class InvenTreeAboutWidget extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _credits(BuildContext context) async {
|
||||||
|
|
||||||
|
String notes = await rootBundle.loadString("assets/credits.md");
|
||||||
|
|
||||||
|
Navigator.push(
|
||||||
|
context,
|
||||||
|
MaterialPageRoute(builder: (context) => CreditsWidget(notes))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
||||||
@ -114,6 +124,17 @@ class InvenTreeAboutWidget extends StatelessWidget {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
tiles.add(
|
||||||
|
ListTile(
|
||||||
|
title: Text(I18N.of(context).credits),
|
||||||
|
subtitle: Text("Additional app credits"),
|
||||||
|
leading: FaIcon(FontAwesomeIcons.bullhorn),
|
||||||
|
onTap: () {
|
||||||
|
_credits(context);
|
||||||
|
}
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(I18N.of(context).appAbout),
|
title: Text(I18N.of(context).appAbout),
|
||||||
|
@ -25,3 +25,24 @@ class ReleaseNotesWidget extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class CreditsWidget extends StatelessWidget {
|
||||||
|
|
||||||
|
final String credits;
|
||||||
|
|
||||||
|
CreditsWidget(this.credits);
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build (BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
title: Text(I18N.of(context).credits),
|
||||||
|
),
|
||||||
|
body: Markdown(
|
||||||
|
selectable: false,
|
||||||
|
data: credits
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -64,6 +64,7 @@ flutter:
|
|||||||
assets:
|
assets:
|
||||||
- assets/image/icon.png
|
- assets/image/icon.png
|
||||||
- assets/release_notes.md
|
- assets/release_notes.md
|
||||||
|
- assets/credits.md
|
||||||
- assets/sounds/barcode_scan.mp3
|
- assets/sounds/barcode_scan.mp3
|
||||||
- assets/sounds/barcode_error.mp3
|
- assets/sounds/barcode_error.mp3
|
||||||
- assets/sounds/server_error.mp3
|
- assets/sounds/server_error.mp3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user