Skip to content

Commit 764a177

Browse files
committed
first commit
1 parent f08f2a3 commit 764a177

File tree

397 files changed

+6646
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

397 files changed

+6646
-0
lines changed

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26+
/pubspec.lock
27+
**/doc/api/
28+
.dart_tool/
29+
.packages
30+
build/

.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
8+
channel: stable
9+
10+
project_type: package

CHANGELOG.md

Lines changed: 3 additions & 0 deletions

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO: Add your license here.

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

assets/flags/ad.webp

4.31 KB
Binary file not shown.

assets/flags/ae.webp

470 Bytes
Binary file not shown.

assets/flags/af.webp

5.27 KB
Binary file not shown.

assets/flags/ag.webp

4.37 KB
Binary file not shown.

assets/flags/ai.webp

5.17 KB
Binary file not shown.

assets/flags/al.webp

5.12 KB
Binary file not shown.

assets/flags/am.webp

340 Bytes
Binary file not shown.

assets/flags/an.webp

1.78 KB
Binary file not shown.

assets/flags/ao.webp

3.35 KB
Binary file not shown.

assets/flags/aq.webp

21.7 KB
Binary file not shown.

assets/flags/ar.webp

2.15 KB
Binary file not shown.

assets/flags/as.webp

7.61 KB
Binary file not shown.

assets/flags/at.webp

434 Bytes
Binary file not shown.

assets/flags/au.webp

5.87 KB
Binary file not shown.

assets/flags/aw.webp

1.56 KB
Binary file not shown.

assets/flags/ax.webp

1.23 KB
Binary file not shown.

assets/flags/az.webp

1.43 KB
Binary file not shown.

assets/flags/ba.webp

3.8 KB
Binary file not shown.

assets/flags/bb.webp

2.18 KB
Binary file not shown.

assets/flags/bd.webp

1.29 KB
Binary file not shown.

assets/flags/be.webp

520 Bytes
Binary file not shown.

assets/flags/bf.webp

1.23 KB
Binary file not shown.

assets/flags/bg.webp

346 Bytes
Binary file not shown.

assets/flags/bh.webp

2 KB
Binary file not shown.

assets/flags/bi.webp

5.87 KB
Binary file not shown.

assets/flags/bj.webp

424 Bytes
Binary file not shown.

assets/flags/bl.webp

11.1 KB
Binary file not shown.

assets/flags/bm.webp

6.74 KB
Binary file not shown.

assets/flags/bn.webp

5.36 KB
Binary file not shown.

assets/flags/bo.webp

2.51 KB
Binary file not shown.

assets/flags/bq.webp

440 Bytes
Binary file not shown.

assets/flags/br.webp

5.95 KB
Binary file not shown.

assets/flags/bs.webp

1.61 KB
Binary file not shown.

assets/flags/bt.webp

8.26 KB
Binary file not shown.

assets/flags/bv.webp

956 Bytes
Binary file not shown.

assets/flags/bw.webp

438 Bytes
Binary file not shown.

assets/flags/by.webp

3.99 KB
Binary file not shown.

assets/flags/bz.webp

11.2 KB
Binary file not shown.

assets/flags/ca.webp

2.41 KB
Binary file not shown.

assets/flags/cc.webp

4.17 KB
Binary file not shown.

assets/flags/cd.webp

7.3 KB
Binary file not shown.

assets/flags/cf.webp

1.71 KB
Binary file not shown.

assets/flags/cg.webp

2.04 KB
Binary file not shown.

assets/flags/ch.webp

894 Bytes
Binary file not shown.

assets/flags/ci.webp

516 Bytes
Binary file not shown.

assets/flags/ck.webp

7.52 KB
Binary file not shown.

assets/flags/cl.webp

1.2 KB
Binary file not shown.

assets/flags/cm.webp

1.17 KB
Binary file not shown.

assets/flags/cn.webp

2 KB
Binary file not shown.

assets/flags/co.webp

466 Bytes
Binary file not shown.

assets/flags/cr.webp

504 Bytes
Binary file not shown.

assets/flags/cu.webp

2.27 KB
Binary file not shown.

assets/flags/cv.webp

2.83 KB
Binary file not shown.

assets/flags/cw.webp

1.48 KB
Binary file not shown.

assets/flags/cx.webp

4.7 KB
Binary file not shown.

assets/flags/cy.webp

3.65 KB
Binary file not shown.

assets/flags/cz.webp

1.63 KB
Binary file not shown.

assets/flags/de.webp

362 Bytes
Binary file not shown.

assets/flags/dj.webp

2.59 KB
Binary file not shown.

assets/flags/dk.webp

842 Bytes
Binary file not shown.

assets/flags/dm.webp

2.61 KB
Binary file not shown.

assets/flags/do.webp

1.83 KB
Binary file not shown.

assets/flags/dz.webp

2.25 KB
Binary file not shown.

assets/flags/ec.webp

4.25 KB
Binary file not shown.

assets/flags/ee.webp

404 Bytes
Binary file not shown.

assets/flags/eg.webp

1.93 KB
Binary file not shown.

assets/flags/eh.webp

2.01 KB
Binary file not shown.

assets/flags/er.webp

5.11 KB
Binary file not shown.

assets/flags/es.webp

3.36 KB
Binary file not shown.

assets/flags/et.webp

3.8 KB
Binary file not shown.

assets/flags/eu.webp

3.9 KB
Binary file not shown.

assets/flags/fi.webp

616 Bytes
Binary file not shown.

assets/flags/fj.webp

6.53 KB
Binary file not shown.

assets/flags/fk.webp

7.22 KB
Binary file not shown.

assets/flags/fm.webp

1.37 KB
Binary file not shown.

assets/flags/fo.webp

954 Bytes
Binary file not shown.

assets/flags/fr.webp

508 Bytes
Binary file not shown.

assets/flags/ga.webp

394 Bytes
Binary file not shown.

assets/flags/gb-eng.webp

528 Bytes
Binary file not shown.

assets/flags/gb-nir.webp

6.35 KB
Binary file not shown.

assets/flags/gb-sct.webp

4.56 KB
Binary file not shown.

assets/flags/gb-wls.webp

12.6 KB
Binary file not shown.

assets/flags/gb.webp

6.35 KB
Binary file not shown.

assets/flags/gd.webp

4.93 KB
Binary file not shown.

assets/flags/ge.webp

2.94 KB
Binary file not shown.

assets/flags/gf.webp

2.3 KB
Binary file not shown.

assets/flags/gg.webp

1.74 KB
Binary file not shown.

assets/flags/gh.webp

1.58 KB
Binary file not shown.

assets/flags/gi.webp

3.62 KB
Binary file not shown.

assets/flags/gl.webp

2.07 KB
Binary file not shown.

assets/flags/gm.webp

544 Bytes
Binary file not shown.

assets/flags/gn.webp

470 Bytes
Binary file not shown.

assets/flags/gp.webp

512 Bytes
Binary file not shown.

assets/flags/gq.webp

2.57 KB
Binary file not shown.

assets/flags/gr.webp

1.29 KB
Binary file not shown.

assets/flags/gs.webp

8.35 KB
Binary file not shown.

assets/flags/gt.webp

2.33 KB
Binary file not shown.

assets/flags/gu.webp

2.6 KB
Binary file not shown.

assets/flags/gw.webp

956 Bytes
Binary file not shown.

assets/flags/gy.webp

5.84 KB
Binary file not shown.

assets/flags/hk.webp

4 KB
Binary file not shown.

assets/flags/hm.webp

5.87 KB
Binary file not shown.

assets/flags/hn.webp

1.53 KB
Binary file not shown.

assets/flags/hr.webp

3.23 KB
Binary file not shown.

assets/flags/ht.webp

2.23 KB
Binary file not shown.

assets/flags/hu.webp

368 Bytes
Binary file not shown.

assets/flags/id.webp

356 Bytes
Binary file not shown.

assets/flags/ie.webp

342 Bytes
Binary file not shown.

assets/flags/il.webp

2.52 KB
Binary file not shown.

assets/flags/im.webp

3.28 KB
Binary file not shown.

assets/flags/in.webp

2.52 KB
Binary file not shown.

assets/flags/io.webp

15 KB
Binary file not shown.

assets/flags/iq.webp

1.84 KB
Binary file not shown.

assets/flags/ir.webp

5.92 KB
Binary file not shown.

assets/flags/is.webp

962 Bytes
Binary file not shown.

assets/flags/it.webp

440 Bytes
Binary file not shown.

assets/flags/je.webp

6.55 KB
Binary file not shown.

assets/flags/jm.webp

4.11 KB
Binary file not shown.

assets/flags/jo.webp

1.6 KB
Binary file not shown.

assets/flags/jp.webp

1.69 KB
Binary file not shown.

assets/flags/ke.webp

3.21 KB
Binary file not shown.

assets/flags/kg.webp

6.38 KB
Binary file not shown.

assets/flags/kh.webp

3.73 KB
Binary file not shown.

assets/flags/ki.webp

7.21 KB
Binary file not shown.

assets/flags/km.webp

2.88 KB
Binary file not shown.

assets/flags/kn.webp

6.17 KB
Binary file not shown.

assets/flags/kp.webp

1.98 KB
Binary file not shown.

assets/flags/kr.webp

5.62 KB
Binary file not shown.

assets/flags/kw.webp

1.05 KB
Binary file not shown.

assets/flags/ky.webp

7.53 KB
Binary file not shown.

assets/flags/kz.webp

4.83 KB
Binary file not shown.

assets/flags/la.webp

1.43 KB
Binary file not shown.

assets/flags/lb.webp

3.27 KB
Binary file not shown.

assets/flags/lc.webp

2.22 KB
Binary file not shown.

assets/flags/li.webp

2.45 KB
Binary file not shown.

assets/flags/lk.webp

5.73 KB
Binary file not shown.

assets/flags/lr.webp

1.42 KB
Binary file not shown.

assets/flags/ls.webp

1.73 KB
Binary file not shown.

assets/flags/lt.webp

390 Bytes
Binary file not shown.

assets/flags/lu.webp

364 Bytes
Binary file not shown.

assets/flags/lv.webp

332 Bytes
Binary file not shown.

assets/flags/ly.webp

994 Bytes
Binary file not shown.

assets/flags/ma.webp

992 Bytes
Binary file not shown.

assets/flags/mc.webp

308 Bytes
Binary file not shown.

assets/flags/md.webp

3.56 KB
Binary file not shown.

assets/flags/me.webp

4.12 KB
Binary file not shown.

assets/flags/mf.webp

512 Bytes
Binary file not shown.

assets/flags/mg.webp

440 Bytes
Binary file not shown.

assets/flags/mh.webp

6.03 KB
Binary file not shown.

assets/flags/mk.webp

6.74 KB
Binary file not shown.

assets/flags/ml.webp

502 Bytes
Binary file not shown.

assets/flags/mm.webp

2.23 KB
Binary file not shown.

assets/flags/mn.webp

2.05 KB
Binary file not shown.

assets/flags/mo.webp

3.6 KB
Binary file not shown.

assets/flags/mp.webp

8.44 KB
Binary file not shown.

assets/flags/mq.webp

6.08 KB
Binary file not shown.

assets/flags/mr.webp

2.74 KB
Binary file not shown.

assets/flags/ms.webp

5.53 KB
Binary file not shown.

assets/flags/mt.webp

1.22 KB
Binary file not shown.

assets/flags/mu.webp

542 Bytes
Binary file not shown.

assets/flags/mv.webp

1.16 KB
Binary file not shown.

assets/flags/mw.webp

2.87 KB
Binary file not shown.

assets/flags/mx.webp

2.88 KB
Binary file not shown.

assets/flags/my.webp

3.5 KB
Binary file not shown.

assets/flags/mz.webp

3.93 KB
Binary file not shown.

assets/flags/na.webp

7.05 KB
Binary file not shown.

assets/flags/nc.webp

3.48 KB
Binary file not shown.

assets/flags/ne.webp

1.37 KB
Binary file not shown.

assets/flags/nf.webp

3.75 KB
Binary file not shown.

assets/flags/ng.webp

312 Bytes
Binary file not shown.

assets/flags/ni.webp

1.68 KB
Binary file not shown.

assets/flags/nl.webp

440 Bytes
Binary file not shown.

assets/flags/no.webp

956 Bytes
Binary file not shown.

assets/flags/np.webp

7.72 KB
Binary file not shown.

assets/flags/nr.webp

1.4 KB
Binary file not shown.

assets/flags/nu.webp

4.89 KB
Binary file not shown.

assets/flags/nz.webp

4.81 KB
Binary file not shown.

assets/flags/om.webp

1.44 KB
Binary file not shown.

assets/flags/pa.webp

1.86 KB
Binary file not shown.

assets/flags/pe.webp

3.95 KB
Binary file not shown.

assets/flags/pf.webp

4.28 KB
Binary file not shown.

assets/flags/pg.webp

4.94 KB
Binary file not shown.

assets/flags/ph.webp

3.15 KB
Binary file not shown.

assets/flags/pk.webp

2.09 KB
Binary file not shown.

assets/flags/pl.webp

276 Bytes
Binary file not shown.

assets/flags/pm.webp

512 Bytes
Binary file not shown.

assets/flags/pn.webp

8.34 KB
Binary file not shown.

assets/flags/pr.webp

2.98 KB
Binary file not shown.

assets/flags/ps.webp

1.22 KB
Binary file not shown.

assets/flags/pt.webp

5.17 KB
Binary file not shown.

assets/flags/pw.webp

1.53 KB
Binary file not shown.

assets/flags/py.webp

1.44 KB
Binary file not shown.

assets/flags/qa.webp

1.37 KB
Binary file not shown.

assets/flags/re.webp

512 Bytes
Binary file not shown.

assets/flags/ro.webp

442 Bytes
Binary file not shown.

assets/flags/rs.webp

5.91 KB
Binary file not shown.

assets/flags/ru.webp

386 Bytes
Binary file not shown.

assets/flags/rw.webp

2.08 KB
Binary file not shown.

assets/flags/sa.webp

5.67 KB
Binary file not shown.

assets/flags/sb.webp

5.17 KB
Binary file not shown.

assets/flags/sc.webp

4.08 KB
Binary file not shown.

assets/flags/sd.webp

1.19 KB
Binary file not shown.

assets/flags/se.webp

724 Bytes
Binary file not shown.

assets/flags/sg.webp

2.3 KB
Binary file not shown.

assets/flags/sh.webp

6.35 KB
Binary file not shown.

assets/flags/si.webp

1.48 KB
Binary file not shown.

assets/flags/sj.webp

956 Bytes
Binary file not shown.

assets/flags/sk.webp

2.89 KB
Binary file not shown.

assets/flags/sl.webp

440 Bytes
Binary file not shown.

assets/flags/sm.webp

7.67 KB
Binary file not shown.

assets/flags/sn.webp

1.39 KB
Binary file not shown.

assets/flags/so.webp

1.45 KB
Binary file not shown.

assets/flags/sr.webp

1.64 KB
Binary file not shown.

assets/flags/ss.webp

2.07 KB
Binary file not shown.

assets/flags/st.webp

2.22 KB
Binary file not shown.

assets/flags/sv.webp

2.03 KB
Binary file not shown.

assets/flags/sx.webp

5.01 KB
Binary file not shown.

assets/flags/sy.webp

1.44 KB
Binary file not shown.

assets/flags/sz.webp

4.93 KB
Binary file not shown.

assets/flags/tc.webp

5.24 KB
Binary file not shown.

assets/flags/td.webp

498 Bytes
Binary file not shown.

assets/flags/tf.webp

3.31 KB
Binary file not shown.

assets/flags/tg.webp

1.64 KB
Binary file not shown.

assets/flags/th.webp

532 Bytes
Binary file not shown.

assets/flags/tj.webp

1.72 KB
Binary file not shown.

assets/flags/tk.webp

3.71 KB
Binary file not shown.

assets/flags/tl.webp

2.87 KB
Binary file not shown.

assets/flags/tm.webp

6.89 KB
Binary file not shown.

assets/flags/tn.webp

3.16 KB
Binary file not shown.

assets/flags/to.webp

862 Bytes
Binary file not shown.

assets/flags/tr.webp

2.64 KB
Binary file not shown.

assets/flags/tt.webp

3.63 KB
Binary file not shown.

assets/flags/tv.webp

6.13 KB
Binary file not shown.

assets/flags/tw.webp

2.43 KB
Binary file not shown.

assets/flags/tz.webp

5.67 KB
Binary file not shown.

assets/flags/ua.webp

390 Bytes
Binary file not shown.

assets/flags/ug.webp

2.39 KB
Binary file not shown.

assets/flags/um.webp

4.38 KB
Binary file not shown.

assets/flags/us.webp

4.38 KB
Binary file not shown.

assets/flags/uy.webp

4.09 KB
Binary file not shown.

assets/flags/uz.webp

1.69 KB
Binary file not shown.

assets/flags/va.webp

7.37 KB
Binary file not shown.

assets/flags/vc.webp

2.13 KB
Binary file not shown.

assets/flags/ve.webp

1.99 KB
Binary file not shown.

assets/flags/vg.webp

7.32 KB
Binary file not shown.

assets/flags/vi.webp

12.8 KB
Binary file not shown.

assets/flags/vn.webp

1.92 KB
Binary file not shown.

assets/flags/vu.webp

5 KB
Binary file not shown.

assets/flags/wf.webp

1.95 KB
Binary file not shown.

assets/flags/ws.webp

1.46 KB
Binary file not shown.

assets/flags/xk.webp

3.9 KB
Binary file not shown.

assets/flags/ye.webp

388 Bytes
Binary file not shown.

assets/flags/yt.webp

512 Bytes
Binary file not shown.

assets/flags/za.webp

4.3 KB
Binary file not shown.

assets/flags/zm.webp

1.96 KB
Binary file not shown.

assets/flags/zw.webp

3.39 KB
Binary file not shown.

example/.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.packages
31+
.pub-cache/
32+
.pub/
33+
/build/
34+
35+
# Symbolication related
36+
app.*.symbols
37+
38+
# Obfuscation related
39+
app.*.map.json
40+
41+
# Android Studio will place build artifacts here
42+
/android/app/debug
43+
/android/app/profile
44+
/android/app/release

example/.metadata

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled.
5+
6+
version:
7+
revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
8+
channel: stable
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
17+
base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
18+
- platform: android
19+
create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
20+
base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
21+
- platform: ios
22+
create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
23+
base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
24+
- platform: linux
25+
create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
26+
base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
27+
- platform: macos
28+
create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
29+
base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
30+
- platform: web
31+
create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
32+
base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
33+
- platform: windows
34+
create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
35+
base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/README.md

Lines changed: 16 additions & 0 deletions

example/analysis_options.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at
17+
# https://dart-lang.github.io/linter/lints/index.html.
18+
#
19+
# Instead of disabling a lint rule for the entire project in the
20+
# section below, it can also be suppressed for a single line of code
21+
# or a specific dart file by using the `// ignore: name_of_lint` and
22+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23+
# producing the lint.
24+
rules:
25+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27+
28+
# Additional information about this file can be found at
29+
# https://dart.dev/guides/language/analysis-options

example/android/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties
12+
**/*.keystore
13+
**/*.jks

example/android/app/build.gradle

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
def localProperties = new Properties()
2+
def localPropertiesFile = rootProject.file('local.properties')
3+
if (localPropertiesFile.exists()) {
4+
localPropertiesFile.withReader('UTF-8') { reader ->
5+
localProperties.load(reader)
6+
}
7+
}
8+
9+
def flutterRoot = localProperties.getProperty('flutter.sdk')
10+
if (flutterRoot == null) {
11+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12+
}
13+
14+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15+
if (flutterVersionCode == null) {
16+
flutterVersionCode = '1'
17+
}
18+
19+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
20+
if (flutterVersionName == null) {
21+
flutterVersionName = '1.0'
22+
}
23+
24+
apply plugin: 'com.android.application'
25+
apply plugin: 'kotlin-android'
26+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27+
28+
android {
29+
compileSdkVersion flutter.compileSdkVersion
30+
ndkVersion flutter.ndkVersion
31+
32+
compileOptions {
33+
sourceCompatibility JavaVersion.VERSION_1_8
34+
targetCompatibility JavaVersion.VERSION_1_8
35+
}
36+
37+
kotlinOptions {
38+
jvmTarget = '1.8'
39+
}
40+
41+
sourceSets {
42+
main.java.srcDirs += 'src/main/kotlin'
43+
}
44+
45+
defaultConfig {
46+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47+
applicationId "com.example.example"
48+
// You can update the following values to match your application needs.
49+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50+
minSdkVersion flutter.minSdkVersion
51+
targetSdkVersion flutter.targetSdkVersion
52+
versionCode flutterVersionCode.toInteger()
53+
versionName flutterVersionName
54+
}
55+
56+
buildTypes {
57+
release {
58+
// TODO: Add your own signing config for the release build.
59+
// Signing with the debug keys for now, so `flutter run --release` works.
60+
signingConfig signingConfigs.debug
61+
}
62+
}
63+
}
64+
65+
flutter {
66+
source '../..'
67+
}
68+
69+
dependencies {
70+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.example.example">
3+
<!-- The INTERNET permission is required for development. Specifically,
4+
the Flutter tool needs it to communicate with the running application
5+
to allow setting breakpoints, to provide hot reload, etc.
6+
-->
7+
<uses-permission android:name="android.permission.INTERNET"/>
8+
</manifest>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.example.example">
3+
<application
4+
android:label="example"
5+
android:name="${applicationName}"
6+
android:icon="@mipmap/ic_launcher">
7+
<activity
8+
android:name=".MainActivity"
9+
android:exported="true"
10+
android:launchMode="singleTop"
11+
android:theme="@style/LaunchTheme"
12+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
13+
android:hardwareAccelerated="true"
14+
android:windowSoftInputMode="adjustResize">
15+
<!-- Specifies an Android theme to apply to this Activity as soon as
16+
the Android process has started. This theme is visible to the user
17+
while the Flutter UI initializes. After that, this theme continues
18+
to determine the Window background behind the Flutter UI. -->
19+
<meta-data
20+
android:name="io.flutter.embedding.android.NormalTheme"
21+
android:resource="@style/NormalTheme"
22+
/>
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN"/>
25+
<category android:name="android.intent.category.LAUNCHER"/>
26+
</intent-filter>
27+
</activity>
28+
<!-- Don't delete the meta-data below.
29+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
30+
<meta-data
31+
android:name="flutterEmbedding"
32+
android:value="2" />
33+
</application>
34+
</manifest>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.example.example
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity() {
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="?android:colorBackground" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="@android:color/white" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
the Flutter engine draws its first frame -->
7+
<item name="android:windowBackground">@drawable/launch_background</item>
8+
</style>
9+
<!-- Theme applied to the Android Window as soon as the process has started.
10+
This theme determines the color of the Android Window while your
11+
Flutter UI initializes, as well as behind your Flutter UI while its
12+
running.
13+
14+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15+
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
16+
<item name="android:windowBackground">?android:colorBackground</item>
17+
</style>
18+
</resources>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
the Flutter engine draws its first frame -->
7+
<item name="android:windowBackground">@drawable/launch_background</item>
8+
</style>
9+
<!-- Theme applied to the Android Window as soon as the process has started.
10+
This theme determines the color of the Android Window while your
11+
Flutter UI initializes, as well as behind your Flutter UI while its
12+
running.
13+
14+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15+
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
16+
<item name="android:windowBackground">?android:colorBackground</item>
17+
</style>
18+
</resources>

0 commit comments

Comments
 (0)