Skip to content

Commit 8df6663

Browse files
committed
Include user docs in readme & settings page
1 parent 9143ce8 commit 8df6663

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
Threefold Connect is a mobile app that serves as your main gateway to the Threefold Grid and various other Threefold products and services.
66

7+
## Documentation
8+
9+
For detailed user documentation and guides, please visit the [TFConnect User Guide](https://manual.grid.tf/labs/documentation/tfconnect_toc).
10+
711
## App
812

913
## Local development

app/lib/screens/preference_screen.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ class _PreferenceScreenState extends ConsumerState<PreferenceScreen> {
224224
title: const Text('Terms and conditions'),
225225
onTap: () async => {await _showTermsAndConds()},
226226
),
227+
ListTile(
228+
leading: const Icon(Icons.help_outline),
229+
title: const Text('View Documentation'),
230+
onTap: () async => {await _showDocumentation()},
231+
),
227232
ListTile(
228233
leading: const Icon(Icons.logout_outlined),
229234
title: Text(
@@ -459,6 +464,15 @@ class _PreferenceScreenState extends ConsumerState<PreferenceScreen> {
459464
await launchUrl(Uri.parse(url));
460465
}
461466

467+
Future<void> _showDocumentation() async {
468+
const String url = 'https://manual.grid.tf/labs/documentation/tfconnect_toc';
469+
470+
final Uri uri = Uri.parse(url);
471+
if (await canLaunchUrl(uri)) {
472+
await launchUrl(uri, mode: LaunchMode.externalApplication);
473+
}
474+
}
475+
462476
void _showVersionInfo() {
463477
try {
464478
AppConfig appConfig = AppConfig();

0 commit comments

Comments
 (0)