]> git.proxmox.com Git - flutter/pve_flutter_frontend.git/blame - lib/widgets/firstWelcomeScreen/pve_welcome_faq.dart
tree-wide: prefer sized box for whitespace
[flutter/pve_flutter_frontend.git] / lib / widgets / firstWelcomeScreen / pve_welcome_faq.dart
CommitLineData
40d61f6e
AL
1import 'package:flutter/material.dart';
2import 'package:url_launcher/url_launcher.dart';
3import 'package:pve_flutter_frontend/widgets/firstWelcomeScreen/pve_welcome_common.dart';
9bb60c76 4import 'package:pve_flutter_frontend/utils/proxmox_colors.dart';
40d61f6e
AL
5
6// FAQ
7class PveWelcomePageFAQ extends StatelessWidget {
8 const PveWelcomePageFAQ({
59df1bb3
TL
9 super.key,
10 });
40d61f6e
AL
11
12 @override
13 Widget build(BuildContext context) {
14 return PveWelcomePageContent(
15 child: Column(
16 mainAxisAlignment: MainAxisAlignment.center,
17 crossAxisAlignment: CrossAxisAlignment.start,
18 children: [
5d2e7931 19 const PveQuestion(
40d61f6e
AL
20 text:
21 "How do I connect if I am not using the default port 8006?"),
5d2e7931 22 const PveAnswer(
40d61f6e
AL
23 text:
24 "Add the port at the end, separated by a colon. For the default https port add 443."),
5d2e7931 25 const PveAnswer(
40d61f6e
AL
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 ),
5d2e7931 34 const PveQuestion(
40d61f6e
AL
35 text: "What about remote consoles?",
36 ),
5d2e7931 37 const PveAnswer(
40d61f6e
AL
38 text:
39 "Spice is currently supported. We plan to integrate VNC in the future."),
5d2e7931
TL
40 const PveQuestion(text: "Which Spice client works?"),
41 const PveAnswer(
40d61f6e
AL
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 },
f57a88a5 50 style: OutlinedButton.styleFrom(
27a2bb4e 51 side: const BorderSide(color: ProxmoxColors.supportGrey),
f57a88a5
DC
52 foregroundColor: Colors.white,
53 ),
59df1bb3 54 child: const Text('Opaque'),
40d61f6e
AL
55 ),
56 ),
57 ],
58 ),
59 );
60 }
61}