]>
Commit | Line | Data |
---|---|---|
40d61f6e AL |
1 | import 'package:flutter/material.dart'; |
2 | import 'package:url_launcher/url_launcher.dart'; | |
3 | import 'package:pve_flutter_frontend/widgets/firstWelcomeScreen/pve_welcome_common.dart'; | |
9bb60c76 | 4 | import 'package:pve_flutter_frontend/utils/proxmox_colors.dart'; |
40d61f6e AL |
5 | |
6 | // FAQ | |
7 | class PveWelcomePageFAQ extends StatelessWidget { | |
8 | const PveWelcomePageFAQ({ | |
598a93b4 | 9 | Key? key, |
40d61f6e AL |
10 | }) : super(key: key); |
11 | ||
12 | @override | |
13 | Widget build(BuildContext context) { | |
14 | return PveWelcomePageContent( | |
15 | child: Column( | |
16 | mainAxisAlignment: MainAxisAlignment.center, | |
17 | crossAxisAlignment: CrossAxisAlignment.start, | |
18 | children: [ | |
19 | PveQuestion( | |
20 | text: | |
21 | "How do I connect if I am not using the default port 8006?"), | |
22 | PveAnswer( | |
23 | text: | |
24 | "Add the port at the end, separated by a colon. For the default https port add 443."), | |
25 | PveAnswer( | |
26 | text: "For example: 192.168.1.10", | |
27 | spans: [ | |
28 | TextSpan( | |
29 | text: ":443", | |
30 | style: TextStyle( | |
31 | fontWeight: FontWeight.bold, fontStyle: FontStyle.italic)) | |
32 | ], | |
33 | ), | |
34 | PveQuestion( | |
35 | text: "What about remote consoles?", | |
36 | ), | |
37 | PveAnswer( | |
38 | text: | |
39 | "Spice is currently supported. We plan to integrate VNC in the future."), | |
40 | PveQuestion(text: "Which Spice client works?"), | |
41 | PveAnswer( | |
42 | text: | |
43 | 'Currently only the following 3rd party Spice client works:'), | |
44 | Center( | |
f57a88a5 | 45 | child: OutlinedButton( |
40d61f6e AL |
46 | onPressed: () => { |
47 | launch( | |
48 | 'https://play.google.com/store/apps/details?id=com.undatech.opaque') | |
49 | }, | |
f19cbb9b | 50 | child: Text('Opaque'), |
f57a88a5 DC |
51 | style: OutlinedButton.styleFrom( |
52 | side: BorderSide(color: ProxmoxColors.supportGrey), | |
53 | foregroundColor: Colors.white, | |
54 | ), | |
40d61f6e AL |
55 | ), |
56 | ), | |
57 | ], | |
58 | ), | |
59 | ); | |
60 | } | |
61 | } |