Show Features in development and planned features

This commit is contained in:
Vishesh Handa
2020-08-19 13:23:49 +02:00
parent 971e73af09
commit d6fb63c696
3 changed files with 38 additions and 0 deletions

View File

@ -222,9 +222,18 @@ feature:
basicSearch: Basic Search
customSSHKeys: Provide your own SSH Keys
customMetaData: Add Custom Metadata to new Notes
graphVisualization: Graph Visualization
mutliRepos: Multiple Git Repos
customThemes: Custom Themes
gitLog: View and Search through Git History
latex: Latex Support
mermaid: Mermaid Diagram Support
encryptedHosting: Encrypted Git Hosting
feature_timeline:
title: Feature Timeline
progress: In Progress
plan: Planned
purchase_screen:
title: Pro Version

View File

@ -36,6 +36,19 @@ class Features {
Feature.yamlTagsKey,
Feature.customMetaData,
];
static final inProgress = <String>[
tr("feature.graphVisualization"),
tr("feature.mutliRepos"),
tr("feature.customThemes"),
tr("feature.gitLog"),
];
static final planned = <String>[
tr("feature.latex"),
tr("feature.mermaid"),
tr("feature.encryptedHosting"),
];
}
class Feature {

View File

@ -7,6 +7,8 @@ import 'package:gitjournal/features.dart';
class FeatureTimelineScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
var theme = Theme.of(context);
return Scaffold(
appBar: AppBar(
title: Text(tr('feature_timeline.title')),
@ -14,6 +16,20 @@ class FeatureTimelineScreen extends StatelessWidget {
body: ListView(
children: [
for (var feature in Features.all) FeatureTile(feature),
for (var title in Features.inProgress)
_Tile(
title: title,
subTitle: tr('feature_timeline.progress'),
iconText: "DEV",
iconColor: theme.primaryColorDark,
),
for (var title in Features.planned)
_Tile(
title: title,
subTitle: tr('feature_timeline.plan'),
iconText: "PLAN",
iconColor: theme.accentColor,
),
],
),
);