2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00

Cleanup "about" info

This commit is contained in:
Oliver Walters
2021-02-13 01:16:40 +11:00
parent 135b752d51
commit 26f978b26d
2 changed files with 47 additions and 38 deletions

View File

@ -48,12 +48,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
leading: FaIcon(FontAwesomeIcons.infoCircle),
onTap: _about,
),
ListTile(
title: Text(I18N.of(context).releaseNotes),
subtitle: Text("Display app release notes"),
leading: FaIcon(FontAwesomeIcons.fileAlt),
onTap: _releaseNotes,
),
ListTile(
title: Text(I18N.of(context).reportBug),
subtitle: Text("Report bug or suggest new feature"),
@ -81,15 +76,4 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
MaterialPageRoute(builder: (context) => InvenTreeAboutWidget(info)));
});
}
void _releaseNotes() async {
// Load release notes from external file
String notes = await rootBundle.loadString("assets/release_notes.md");
Navigator.push(
context,
MaterialPageRoute(builder: (context) => ReleaseNotesWidget(notes))
);
}
}