]> git.proxmox.com Git - flutter/pve_flutter_frontend.git/blob - lib/widgets/firstWelcomeScreen/pve_welcome_last.dart
Add first welcome screen
[flutter/pve_flutter_frontend.git] / lib / widgets / firstWelcomeScreen / pve_welcome_last.dart
1 import 'package:flutter/material.dart';
2 import 'package:url_launcher/url_launcher.dart';
3 import 'package:pve_flutter_frontend/utils/promox_colors.dart';
4
5 // goodbye
6 class PveWelcomePageLast extends StatelessWidget {
7 const PveWelcomePageLast({Key key, this.onDone}) : super(key: key);
8
9 final VoidCallback onDone;
10
11 @override
12 Widget build(BuildContext context) {
13 return Container(child: LayoutBuilder(
14 builder: (BuildContext context, BoxConstraints viewportConstraints) {
15 return SingleChildScrollView(
16 child: ConstrainedBox(
17 constraints: BoxConstraints(minHeight: viewportConstraints.maxHeight),
18 child: IntrinsicHeight(
19 child: Padding(
20 padding: const EdgeInsets.fromLTRB(15.0, 15.0, 15.0, 0.0),
21 child: Column(
22 mainAxisAlignment: MainAxisAlignment.spaceBetween,
23 children: [
24 Spacer(flex: 3),
25 Column(
26 mainAxisAlignment: MainAxisAlignment.center,
27 children: [
28 Text("Enjoy the app"),
29 Padding(
30 padding: const EdgeInsets.all(8.0),
31 child: Icon(
32 Icons.emoji_people_rounded,
33 color: Colors.white,
34 size: 70,
35 ),
36 ),
37 Padding(
38 padding: const EdgeInsets.all(8.0),
39 child: RaisedButton(
40 onPressed: () => {onDone()},
41 color: ProxmoxColors.orange,
42 textColor: Colors.white,
43 child: Text("Start"),
44 ),
45 ),
46 ],
47 ),
48 Spacer(flex: 1),
49 ConstrainedBox(
50 constraints: BoxConstraints(maxWidth: 500),
51 child: Column(
52 children: [
53 Text(
54 'If you have suggestions or experience any problems, please contact us via',
55 textAlign: TextAlign.center,
56 ),
57 Row(
58 mainAxisAlignment: MainAxisAlignment.spaceEvenly,
59 children: [
60 OutlineButton(
61 onPressed: () =>
62 {launch('https://forum.proxmox.com')},
63 child: Text('Forum'),
64 borderSide:
65 BorderSide(color: ProxmoxColors.supportGrey),
66 textColor: Colors.white,
67 ),
68 OutlineButton(
69 onPressed: () => {
70 launch(
71 'https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user')
72 },
73 child: Text('User Mailing List'),
74 borderSide:
75 BorderSide(color: ProxmoxColors.supportGrey),
76 textColor: Colors.white,
77 ),
78 ],
79 ),
80 ],
81 ),
82 ),
83 Spacer(
84 flex: 2,
85 )
86 ],
87 ),
88 ),
89 ),
90 ),
91 );
92 }));
93 }
94 }