Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

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

## Documentation

For detailed user documentation and guides, please visit the [TFConnect User Guide](https://manual.grid.tf/labs/documentation/tfconnect_toc).

## App

## Local development
Expand Down
14 changes: 14 additions & 0 deletions app/lib/screens/preference_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ class _PreferenceScreenState extends ConsumerState<PreferenceScreen> {
title: const Text('Terms and conditions'),
onTap: () async => {await _showTermsAndConds()},
),
ListTile(
leading: const Icon(Icons.help_outline),
title: const Text('View Documentation'),
Comment thread
zaelgohary marked this conversation as resolved.
Outdated
onTap: () async => {await _showDocumentation()},
),
ListTile(
leading: const Icon(Icons.logout_outlined),
title: Text(
Expand Down Expand Up @@ -459,6 +464,15 @@ class _PreferenceScreenState extends ConsumerState<PreferenceScreen> {
await launchUrl(Uri.parse(url));
}

Future<void> _showDocumentation() async {
const String url = 'https://manual.grid.tf/labs/documentation/tfconnect_toc';

final Uri uri = Uri.parse(url);
if (await canLaunchUrl(uri)) {
await launchUrl(uri, mode: LaunchMode.externalApplication);
}
}

void _showVersionInfo() {
try {
AppConfig appConfig = AppConfig();
Expand Down