Skip to content

Commit

Permalink
Merge pull request #181 from Pavel401/connect-readme
Browse files Browse the repository at this point in the history
📦 NEW: added taskserver setup guide in the app
  • Loading branch information
Pavel401 authored Sep 10, 2023
2 parents 2c6ca93 + 05b9d9a commit d117f52
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/taskserver/ntaskserver.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import 'package:taskwarrior/widgets/home_paths.dart' as rc;
import 'package:taskwarrior/widgets/pallete.dart';
import 'package:taskwarrior/widgets/taskdetails.dart';
import 'package:taskwarrior/widgets/taskserver.dart';
import 'package:url_launcher/url_launcher.dart';

class ManageTaskServer extends StatefulWidget {
const ManageTaskServer({Key? key}) : super(key: key);
Expand Down Expand Up @@ -283,7 +284,13 @@ class _ManageTaskServerState extends State<ManageTaskServer> {
Icons.info,
color: Colors.white,
),
onPressed: () {},
onPressed: () async {
String url =
"https://github.com/Pavel401/taskwarrior-flutter/blob/main/README.md#taskserver-setup";
if (!await launchUrl(Uri.parse(url))) {
throw Exception('Could not launch $url');
}
},
),
if (kDebugMode)
IconButton(
Expand Down

0 comments on commit d117f52

Please sign in to comment.