Skip to content

Commit a421171

Browse files
authored
Merge pull request #5 from testainers/dev
Version 0.0.2.
2 parents f102f43 + 20a3b7b commit a421171

File tree

13 files changed

+454
-263
lines changed

13 files changed

+454
-263
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ jobs:
4444
run: flutter build web
4545

4646
- name: Publishing to GitHub Pages
47-
uses: peaceiris/actions-gh-pages@v3
47+
uses: peaceiris/actions-gh-pages@v4
4848
with:
4949
publish_dir: ./build/web
5050
github_token: ${{ secrets.GITHUB_TOKEN }}
51+
cname: testainers.com
5152

5253
- name: Creating a GitHub Tag
53-
uses: mathieudutour/github-tag-action@v6.1
54+
uses: mathieudutour/github-tag-action@v6.2
5455
with:
5556
custom_tag: ${{ env.VERSION }}
5657
tag_prefix: ''

.metadata

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled.
4+
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: 796c8ef79279f9c774545b3771238c3098dbefab
8-
channel: stable
7+
revision: "a14f74ff3a1cbd521163c5f03d68113d50af93d3"
8+
channel: "stable"
99

1010
project_type: app
1111

1212
# Tracks metadata for the flutter migrate command
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
17-
base_revision: 796c8ef79279f9c774545b3771238c3098dbefab
16+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
17+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
1818
- platform: web
19-
create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
20-
base_revision: 796c8ef79279f9c774545b3771238c3098dbefab
19+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
20+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
2121

2222
# User provided section
2323

assets/images/pix.png

24 KB
Loading
-5.05 KB
Loading

assets/images/testainers-250.png

-30.8 KB
Loading
-75 Bytes
Loading

lib/button_widget.dart

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:url_launcher/url_launcher_string.dart';
3+
4+
///
5+
///
6+
///
7+
class ButtonWidget extends StatelessWidget {
8+
final String label;
9+
final String iconName;
10+
final String? url;
11+
12+
///
13+
///
14+
///
15+
const ButtonWidget({
16+
required this.label,
17+
required this.iconName,
18+
this.url,
19+
super.key,
20+
});
21+
22+
///
23+
///
24+
///
25+
@override
26+
Widget build(BuildContext context) {
27+
return Padding(
28+
padding: const EdgeInsets.all(8),
29+
child: ElevatedButton(
30+
onPressed: url == null ? null : () => launchUrlString(url!),
31+
child: Row(
32+
mainAxisSize: MainAxisSize.min,
33+
children: <Widget>[
34+
Image.asset('assets/icons/$iconName.png', height: 16),
35+
const SizedBox(width: 8),
36+
Text(label),
37+
],
38+
),
39+
),
40+
);
41+
}
42+
}

lib/description_widget.dart

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import 'package:flutter/material.dart';
2+
3+
///
4+
///
5+
///
6+
class DescriptionWidget extends StatelessWidget {
7+
final String? imageName;
8+
final List<String> paragraphs;
9+
10+
///
11+
///
12+
///
13+
const DescriptionWidget({
14+
this.imageName,
15+
this.paragraphs = const <String>[],
16+
super.key,
17+
});
18+
19+
///
20+
///
21+
///
22+
@override
23+
Widget build(BuildContext context) {
24+
return Row(
25+
mainAxisAlignment: MainAxisAlignment.spaceAround,
26+
children: <Widget>[
27+
Flexible(
28+
child: Column(
29+
mainAxisAlignment: MainAxisAlignment.center,
30+
children: <Widget>[
31+
if (imageName != null)
32+
Image.asset(
33+
'assets/images/$imageName.png',
34+
)
35+
else
36+
Container(),
37+
],
38+
),
39+
),
40+
Flexible(
41+
child: Column(
42+
children: <Widget>[
43+
if (paragraphs.isNotEmpty)
44+
...paragraphs.map(
45+
(String paragraph) => Padding(
46+
padding: const EdgeInsets.all(8),
47+
child: Text(
48+
paragraph,
49+
textAlign: TextAlign.center,
50+
style: Theme.of(context)
51+
.textTheme
52+
.bodySmall
53+
?.copyWith(fontSize: 20),
54+
),
55+
),
56+
)
57+
else
58+
Container(),
59+
],
60+
),
61+
),
62+
],
63+
);
64+
}
65+
}

lib/header_widget.dart

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import 'package:flutter/material.dart';
2+
3+
///
4+
///
5+
///
6+
class HeaderWidget extends StatelessWidget {
7+
final String label;
8+
9+
///
10+
///
11+
///
12+
const HeaderWidget(
13+
this.label, {
14+
super.key,
15+
});
16+
17+
///
18+
///
19+
///
20+
@override
21+
Widget build(BuildContext context) {
22+
return Text(
23+
label,
24+
style: Theme.of(context).textTheme.titleLarge?.copyWith(
25+
fontSize: 50,
26+
fontWeight: FontWeight.bold,
27+
),
28+
);
29+
}
30+
}

0 commit comments

Comments
 (0)