diff --git a/README.md b/README.md index a82d4891..6a44b8ea 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/app/lib/screens/preference_screen.dart b/app/lib/screens/preference_screen.dart index d61a7038..83ea6d52 100644 --- a/app/lib/screens/preference_screen.dart +++ b/app/lib/screens/preference_screen.dart @@ -224,6 +224,11 @@ class _PreferenceScreenState extends ConsumerState { title: const Text('Terms and conditions'), onTap: () async => {await _showTermsAndConds()}, ), + ListTile( + leading: const Icon(Icons.help_outline), + title: const Text('View Documentation'), + onTap: () async => {await _showDocumentation()}, + ), ListTile( leading: const Icon(Icons.logout_outlined), title: Text( @@ -459,6 +464,15 @@ class _PreferenceScreenState extends ConsumerState { await launchUrl(Uri.parse(url)); } + Future _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();