-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
index.html
393 lines (355 loc) · 10.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
<!-- Copyright 2018 The Flutter Architecture Sample Authors. All rights reserved. -->
<!-- Use of this source code is governed by the MIT license that can be found -->
<!-- in the LICENSE file. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Flutter Architecture Samples</title>
<link rel="shortcut icon" href="assets/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="assets/favicon-32x32.png"
sizes="32x32"/>
<link rel="icon" type="image/png" href="assets/favicon-16x16.png"
sizes="16x16"/>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.3.0/milligram.css"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<style>
body {
color: rgb(17, 17, 17);
}
.site-title {
font-size: 4.2rem;
margin-bottom: 0.25rem;
}
.button-blue {
background-color: #3FBCCC;
border-color: #3FBCCC;
}
a {
color: #3FBCCC;
}
a:focus,
a:hover,
a:hover {
color: #028A9C;
border-color: #028A9C !important;
}
.button-blue:active,
.button-blue:focus,
.button-blue:hover {
background-color: #028A9C;
border-color: #028A9C;
}
.button-blue.button-outline:active,
.button-blue.button-outline:focus,
.button-blue.button-outline:hover {
border-color: #028A9C;
color: #028A9C;
}
.button-blue.button-clear,
.button-blue.button-outline {
background-color: transparent;
color: #3FBCCC;
}
.button-blue.button-clear {
border-color: transparent;
}
.site-subtitle {
color: rgb(120, 120, 120);
margin-bottom: 1.2rem;
}
.downloads {
margin-bottom: 2.4rem;
}
h2 {
color: rgb(70, 70, 70);
}
.site-header {
margin-top: 3.2rem;
margin-bottom: 1.2rem;
}
.container {
max-width: 80rem;
}
.logo {
max-width: 9rem;
margin-right: 2.4rem;
margin-bottom: 1.2rem;
padding-left: 1.0rem;
}
.card {
background-color: white;
border-radius: 0.25rem;
box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.25);
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
min-height: 180px;
padding: 2.4rem 2.4rem 1.2rem 2.4rem;
border: solid transparent;
border-bottom-color: transparent;
border-bottom-color: #3FBCCC;
margin-left: auto;
margin-right: auto;
margin-bottom: 4rem;
}
.site-title-container {
flex-basis: min-content;
}
.screenshot {
margin-bottom: 2.4rem;
}
.screenshot img {
-webkit-box-shadow: 0px 10px 20px 0px rgba(50, 50, 50, 0.4);
-moz-box-shadow: 0px 10px 20px 0px rgba(50, 50, 50, 0.4);
box-shadow: 0px 10px 20px 0px rgba(50, 50, 50, 0.4);
}
/* Larger than mobile screen */
@media (min-width: 40.0rem) {
.screenshot {
max-width: 16rem;
float: right;
margin-left: 2.4rem;
}
}
/* Larger than tablet screen */
@media (min-width: 80.0rem) {
}
/* Larger than desktop screen */
@media (min-width: 120.0rem) {
}
.web-demo {
border: 1px solid #3FBCCC;
padding: 1px 3px;
display: inline-block;
border-radius: 3px;
font-size: 0.8em;
margin-left: 10px;
text-transform: uppercase;
}
@media (prefers-color-scheme: dark) {
body {
background: #1E272C;
color: #d9e5fa;
}
.card {
background: #262f34;
}
.site-subtitle {
color: #9fa6b3;
}
}
</style>
</head>
<body>
<div class="container">
<div class="row site-header">
<div class="logo">
<img src="assets/logo.png" alt="Flutter Architecture Samples Logo">
</div>
<div class="site-title-container">
<h1 class="site-title">Flutter Architecture Samples</h1>
<h5 class="site-subtitle">A gallery of app architectures</h5>
</div>
</div>
<aside class="screenshot">
<picture>
<img src="assets/screenshot.png" alt="Screenshot of the app">
</picture>
</aside>
<div class="content">
<div class="description">
<p>
Flutter provides a lot of flexibility in deciding how to organize and
architect your apps. While this
freedom is very valuable,
it can also lead to apps with large classes, inconsistent naming
schemes, as well as mismatching or
missing
architectures. These types of issues can make testing, maintaining and
extending your apps
difficult.</p>
<p>The Flutter Architecture Samples project demonstrates strategies to
help solve or avoid these common
problems.
This project implements the same "Todos" app using different
architectural concepts and tools.</p>
</div>
<div class="downloads">
<a
href="https://github.com/brianegan/flutter_architecture_samples/archive/master.zip"
class="button button-blue">Download</a>
<a href="https://github.com/brianegan/flutter_architecture_samples"
class="button button-blue button-outline">Github</a>
</div>
<div class="card">
<h3>Samples</h3>
<ul>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/vanilla">Vanilla
Lifting State Up
</a>
<a href="https://fas_vanilla.codemagic.app" class="web-demo">Web
Demo</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/inherited_widget">InheritedWidget</a>
<a href="https://fas_inherited_widget.codemagic.app" class="web-demo">Web
Demo</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/change_notifier_provider">ChangeNotifier
+ Provider</a>
<a href="https://fas_change_notifier_provider.codemagic.app"
class="web-demo">Web
Demo</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/bloc_flutter">BLoC</a>
<a href="https://fas_bloc_flutter.codemagic.app" class="web-demo">Web
Demo</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/bloc_library">Bloc
Library</a>
<a href="https://fas_bloc_library.codemagic.app" class="web-demo">Web
Demo</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/mobx">Mobx</a>
<a href="https://fas_mobx.codemagic.app" class="web-demo">Web Demo</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/redux">Redux</a>
<a href="https://fas_redux.codemagic.app" class="web-demo">Web
Demo</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/simple_bloc_flutter">"Simple"
BLoC Example</a>
<a href="https://fas_simple_bloc.codemagic.app" class="web-demo">Web
Demo</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/mvi_flutter">MVI</a>
<a href="https://fas_mvi.codemagic.app" class="web-demo">Web Demo</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/states_rebuilder">states_rebuilder</a>
<a href="https://fas_states_rebuilder.codemagic.app" class="web-demo">Web Demo</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/built_redux">built_redux</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/scoped_model">scoped_model</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/firestore_redux">Redux
and Firestore</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/mvu">MVU</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/mvc">MVC
Example</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/frideos_library">Frideos
library</a>
</li>
</ul>
</div>
<div class="card">
<h3>Supporting code</h3>
<ul>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/integration_tests">Integration
Tests</a>
</li>
<li>
<a
href="https://github.com/brianegan/flutter_architecture_samples/tree/master/example/todos_repository">Todos
Repository</a>
</li>
</ul>
</div>
<div class="card">
<h3>Contributors</h3>
<ul>
<li>
<a href="https://github.com/brianegan">Brian Egan</a>
</li>
<li>
<a href="https://github.com/davidmarne">David Marne</a>
</li>
<li>
<a href="https://github.com/passsy">Pascal Welsch</a>
</li>
<li>
<a href="https://github.com/kinggolf">Larry King</a>
</li>
<li>
<a href="https://github.com/franklinharper">Frank Harper</a>
</li>
<li>
<a href="https://github.com/p69">Pavel Shilyagov</a>
</li>
<li>
<a href="https://github.com/mmcc007">Maurice McCabe</a>
</li>
<li>
<a href="https://github.com/leocavalcante">Leo Cavalcante</a>
</li>
<li>
<a href="https://github.com/AndriousSolutions">Greg Perry</a>
</li>
<li>
<a href="https://github.com/felangel">Felix Angelov</a>
</li>
<li>
<a href="https://github.com/frideosapps">Francesco Mineo</a>
</li>
<li>
<a href="https://github.com/pavanpodila">Pavan Podila</a>
</li>
<li>
<a href="https://github.com/kush3107">Kushagra Saxena</a>
</li>
<li>
<a href="https://github.com/GIfatahTH">Mellati Fateh</a>
</li>
</ul>
</div>
<div class="copyright">
<p> © 2017
<a href="https://github.com/brianegan">Brian Egan</a> and contributors.
</p>
</div>
</div>
</div>
</body>
</html>