mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Add credits file
This commit is contained in:
parent
b293806fe3
commit
af79ee9d11
5 changed files with 50 additions and 1 deletions
|
|
@ -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
|
||||
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(
|
||||
appBar: AppBar(
|
||||
title: Text(I18N.of(context).appAbout),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue