Skip to content

Commit 5c4ffa1

Browse files
committed
modernize
1 parent d1da915 commit 5c4ffa1

File tree

8 files changed

+132
-129
lines changed

8 files changed

+132
-129
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,41 @@
1-
name: Flutter build
1+
name: Deploy to Pages
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: ["main"]
66

7-
jobs:
8-
build:
7+
workflow_dispatch:
98

10-
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
1117

18+
jobs:
19+
deploy:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
runs-on: ubuntu-latest
1224
steps:
13-
- uses: actions/checkout@v3
14-
- uses: subosito/flutter-action@v2
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Build
28+
uses: subosito/flutter-action@v2
1529
with:
16-
flutter-version: '3.0.0'
30+
flutter-version: '3.16.7'
1731
- run: flutter pub get
1832
- run: flutter build web
19-
- uses: JamesIves/[email protected]
33+
- name: Setup Pages
34+
uses: actions/configure-pages@v4
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v3
2037
with:
21-
branch: gh-pages
22-
folder: build/web
38+
path: 'build/web'
39+
- name: Deploy to GitHub Pages
40+
id: deployment
41+
uses: actions/deploy-pages@v4

lib/app.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ class App extends StatelessWidget {
1212
return MaterialApp(
1313
title: 'Commit 451',
1414
theme: ThemeData(
15-
primarySwatch: Commit451Colors.primaryMaterialColor(),
15+
// Define the default brightness and colors.
16+
colorScheme: ColorScheme.fromSeed(
17+
seedColor: Commit451Colors.primaryColor(),
18+
),
1619
),
1720
debugShowCheckedModeBanner: false,
1821
initialRoute: "/",

pubspec.lock

Lines changed: 97 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,50 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
url: "https://pub.dartlang.org"
8+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9+
url: "https://pub.dev"
910
source: hosted
10-
version: "2.8.2"
11+
version: "2.11.0"
1112
boolean_selector:
1213
dependency: transitive
1314
description:
1415
name: boolean_selector
15-
url: "https://pub.dartlang.org"
16+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17+
url: "https://pub.dev"
1618
source: hosted
17-
version: "2.1.0"
19+
version: "2.1.1"
1820
characters:
1921
dependency: transitive
2022
description:
2123
name: characters
22-
url: "https://pub.dartlang.org"
24+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25+
url: "https://pub.dev"
2326
source: hosted
24-
version: "1.2.0"
25-
charcode:
26-
dependency: transitive
27-
description:
28-
name: charcode
29-
url: "https://pub.dartlang.org"
30-
source: hosted
31-
version: "1.3.1"
27+
version: "1.3.0"
3228
clock:
3329
dependency: transitive
3430
description:
3531
name: clock
36-
url: "https://pub.dartlang.org"
32+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33+
url: "https://pub.dev"
3734
source: hosted
38-
version: "1.1.0"
35+
version: "1.1.1"
3936
collection:
4037
dependency: transitive
4138
description:
4239
name: collection
43-
url: "https://pub.dartlang.org"
40+
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
41+
url: "https://pub.dev"
4442
source: hosted
45-
version: "1.16.0"
43+
version: "1.18.0"
4644
fake_async:
4745
dependency: transitive
4846
description:
4947
name: fake_async
50-
url: "https://pub.dartlang.org"
48+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
49+
url: "https://pub.dev"
5150
source: hosted
52-
version: "1.3.0"
51+
version: "1.3.1"
5352
flutter:
5453
dependency: "direct main"
5554
description: flutter
@@ -59,9 +58,10 @@ packages:
5958
dependency: "direct dev"
6059
description:
6160
name: flutter_lints
62-
url: "https://pub.dartlang.org"
61+
sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7
62+
url: "https://pub.dev"
6363
source: hosted
64-
version: "2.0.1"
64+
version: "3.0.1"
6565
flutter_test:
6666
dependency: "direct dev"
6767
description: flutter
@@ -76,58 +76,58 @@ packages:
7676
dependency: "direct main"
7777
description:
7878
name: font_awesome_flutter
79-
url: "https://pub.dartlang.org"
80-
source: hosted
81-
version: "10.1.0"
82-
js:
83-
dependency: transitive
84-
description:
85-
name: js
86-
url: "https://pub.dartlang.org"
79+
sha256: "52671aea66da73b58d42ec6d0912b727a42248dd9a7c76d6c20f275783c48c08"
80+
url: "https://pub.dev"
8781
source: hosted
88-
version: "0.6.4"
82+
version: "10.6.0"
8983
lints:
9084
dependency: transitive
9185
description:
9286
name: lints
93-
url: "https://pub.dartlang.org"
87+
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
88+
url: "https://pub.dev"
9489
source: hosted
95-
version: "2.0.0"
90+
version: "3.0.0"
9691
matcher:
9792
dependency: transitive
9893
description:
9994
name: matcher
100-
url: "https://pub.dartlang.org"
95+
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
96+
url: "https://pub.dev"
10197
source: hosted
102-
version: "0.12.11"
98+
version: "0.12.16"
10399
material_color_utilities:
104100
dependency: transitive
105101
description:
106102
name: material_color_utilities
107-
url: "https://pub.dartlang.org"
103+
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
104+
url: "https://pub.dev"
108105
source: hosted
109-
version: "0.1.4"
106+
version: "0.5.0"
110107
meta:
111108
dependency: transitive
112109
description:
113110
name: meta
114-
url: "https://pub.dartlang.org"
111+
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
112+
url: "https://pub.dev"
115113
source: hosted
116-
version: "1.7.0"
114+
version: "1.10.0"
117115
path:
118116
dependency: transitive
119117
description:
120118
name: path
121-
url: "https://pub.dartlang.org"
119+
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
120+
url: "https://pub.dev"
122121
source: hosted
123-
version: "1.8.1"
122+
version: "1.8.3"
124123
plugin_platform_interface:
125124
dependency: transitive
126125
description:
127126
name: plugin_platform_interface
128-
url: "https://pub.dartlang.org"
127+
sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
128+
url: "https://pub.dev"
129129
source: hosted
130-
version: "2.1.2"
130+
version: "2.1.8"
131131
sky_engine:
132132
dependency: transitive
133133
description: flutter
@@ -137,107 +137,130 @@ packages:
137137
dependency: transitive
138138
description:
139139
name: source_span
140-
url: "https://pub.dartlang.org"
140+
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
141+
url: "https://pub.dev"
141142
source: hosted
142-
version: "1.8.2"
143+
version: "1.10.0"
143144
stack_trace:
144145
dependency: transitive
145146
description:
146147
name: stack_trace
147-
url: "https://pub.dartlang.org"
148+
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
149+
url: "https://pub.dev"
148150
source: hosted
149-
version: "1.10.0"
151+
version: "1.11.1"
150152
stream_channel:
151153
dependency: transitive
152154
description:
153155
name: stream_channel
154-
url: "https://pub.dartlang.org"
156+
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
157+
url: "https://pub.dev"
155158
source: hosted
156-
version: "2.1.0"
159+
version: "2.1.2"
157160
string_scanner:
158161
dependency: transitive
159162
description:
160163
name: string_scanner
161-
url: "https://pub.dartlang.org"
164+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
165+
url: "https://pub.dev"
162166
source: hosted
163-
version: "1.1.0"
167+
version: "1.2.0"
164168
term_glyph:
165169
dependency: transitive
166170
description:
167171
name: term_glyph
168-
url: "https://pub.dartlang.org"
172+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
173+
url: "https://pub.dev"
169174
source: hosted
170-
version: "1.2.0"
175+
version: "1.2.1"
171176
test_api:
172177
dependency: transitive
173178
description:
174179
name: test_api
175-
url: "https://pub.dartlang.org"
180+
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
181+
url: "https://pub.dev"
176182
source: hosted
177-
version: "0.4.9"
183+
version: "0.6.1"
178184
url_launcher:
179185
dependency: "direct main"
180186
description:
181187
name: url_launcher
182-
url: "https://pub.dartlang.org"
188+
sha256: c512655380d241a337521703af62d2c122bf7b77a46ff7dd750092aa9433499c
189+
url: "https://pub.dev"
183190
source: hosted
184-
version: "6.1.2"
191+
version: "6.2.4"
185192
url_launcher_android:
186193
dependency: transitive
187194
description:
188195
name: url_launcher_android
189-
url: "https://pub.dartlang.org"
196+
sha256: "507dc655b1d9cb5ebc756032eb785f114e415f91557b73bf60b7e201dfedeb2f"
197+
url: "https://pub.dev"
190198
source: hosted
191-
version: "6.0.17"
199+
version: "6.2.2"
192200
url_launcher_ios:
193201
dependency: transitive
194202
description:
195203
name: url_launcher_ios
196-
url: "https://pub.dartlang.org"
204+
sha256: "75bb6fe3f60070407704282a2d295630cab232991eb52542b18347a8a941df03"
205+
url: "https://pub.dev"
197206
source: hosted
198-
version: "6.0.16"
207+
version: "6.2.4"
199208
url_launcher_linux:
200209
dependency: transitive
201210
description:
202211
name: url_launcher_linux
203-
url: "https://pub.dartlang.org"
212+
sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811
213+
url: "https://pub.dev"
204214
source: hosted
205-
version: "3.0.1"
215+
version: "3.1.1"
206216
url_launcher_macos:
207217
dependency: transitive
208218
description:
209219
name: url_launcher_macos
210-
url: "https://pub.dartlang.org"
220+
sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234
221+
url: "https://pub.dev"
211222
source: hosted
212-
version: "3.0.1"
223+
version: "3.1.0"
213224
url_launcher_platform_interface:
214225
dependency: transitive
215226
description:
216227
name: url_launcher_platform_interface
217-
url: "https://pub.dartlang.org"
228+
sha256: a932c3a8082e118f80a475ce692fde89dc20fddb24c57360b96bc56f7035de1f
229+
url: "https://pub.dev"
218230
source: hosted
219-
version: "2.0.5"
231+
version: "2.3.1"
220232
url_launcher_web:
221233
dependency: transitive
222234
description:
223235
name: url_launcher_web
224-
url: "https://pub.dartlang.org"
236+
sha256: fff0932192afeedf63cdd50ecbb1bc825d31aed259f02bb8dba0f3b729a5e88b
237+
url: "https://pub.dev"
225238
source: hosted
226-
version: "2.0.11"
239+
version: "2.2.3"
227240
url_launcher_windows:
228241
dependency: transitive
229242
description:
230243
name: url_launcher_windows
231-
url: "https://pub.dartlang.org"
244+
sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7
245+
url: "https://pub.dev"
232246
source: hosted
233-
version: "3.0.1"
247+
version: "3.1.1"
234248
vector_math:
235249
dependency: transitive
236250
description:
237251
name: vector_math
238-
url: "https://pub.dartlang.org"
252+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
253+
url: "https://pub.dev"
239254
source: hosted
240-
version: "2.1.2"
255+
version: "2.1.4"
256+
web:
257+
dependency: transitive
258+
description:
259+
name: web
260+
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
261+
url: "https://pub.dev"
262+
source: hosted
263+
version: "0.3.0"
241264
sdks:
242-
dart: ">=2.17.0 <3.0.0"
243-
flutter: ">=2.10.0"
265+
dart: ">=3.2.0 <4.0.0"
266+
flutter: ">=3.16.0"

0 commit comments

Comments
 (0)