mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 02:59:02 +08:00
Show Features in development and planned features
This commit is contained in:
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user