Skip to content

Commit 81f58d3

Browse files
feat(ref: no-ref): todo mvc app
0 parents  commit 81f58d3

File tree

141 files changed

+5692
-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.

141 files changed

+5692
-0
lines changed

.gitignore

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

.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 and should not be manually edited.
5+
6+
version:
7+
revision: "17025dd88227cd9532c33fa78f5250d548d87e9a"
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: 17025dd88227cd9532c33fa78f5250d548d87e9a
17+
base_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
18+
- platform: android
19+
create_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
20+
base_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
21+
- platform: ios
22+
create_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
23+
base_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
24+
- platform: linux
25+
create_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
26+
base_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
27+
- platform: macos
28+
create_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
29+
base_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
30+
- platform: web
31+
create_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
32+
base_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
33+
- platform: windows
34+
create_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
35+
base_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
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'

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# todo_mvc
2+
3+
A new Flutter project.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13+
14+
For help getting started with Flutter development, view the
15+
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.

analysis_options.yaml

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
include: package:flutter_lints/flutter.yaml
2+
analyzer:
3+
language:
4+
strict-casts: false
5+
strict-raw-types: false
6+
plugins:
7+
- custom_lint
8+
errors:
9+
todo: ignore
10+
invalid_annotation_target: ignore
11+
deprecated_member_use_from_same_package: ignore
12+
exclude:
13+
- 'bin/cache/**'
14+
- 'lib/i18n/messages_*.dart'
15+
- 'lib/src/http/**'
16+
- '**/*.g.dart'
17+
- '**/*.freezed.dart'
18+
- 'badges/**'
19+
20+
custom_lint:
21+
enable_all_lint_rules: false
22+
rules:
23+
- file_naming_kebab_case
24+
25+
linter:
26+
rules:
27+
file_names: false
28+
use_super_parameters: true
29+
always_declare_return_types: true
30+
always_put_control_body_on_new_line: true
31+
always_put_required_named_parameters_first: true
32+
always_specify_types: true
33+
annotate_overrides: true
34+
avoid_annotating_with_dynamic: false # conflicts with always_specify_types: true
35+
avoid_as: true # required for implicit-casts: true: true
36+
avoid_bool_literals_in_conditional_expressions: true
37+
avoid_catches_without_on_clauses: false
38+
avoid_catching_errors: true
39+
avoid_classes_with_only_static_members: true
40+
avoid_double_and_int_checks: true # only useful when targeting JS runtime
41+
avoid_empty_else: true
42+
avoid_equals_and_hash_code_on_mutable_classes: true
43+
avoid_field_initializers_in_const_classes: true
44+
avoid_function_literals_in_foreach_calls: true
45+
avoid_implementing_value_types: true
46+
avoid_init_to_null: true
47+
avoid_js_rounded_ints: true # only useful when targeting JS runtime
48+
avoid_null_checks_in_equality_operators: true
49+
avoid_positional_boolean_parameters: true
50+
# avoid_print: true
51+
avoid_private_typedef_functions: true #
52+
avoid_redundant_argument_values: true
53+
avoid_relative_lib_imports: true
54+
avoid_renaming_method_parameters: true
55+
avoid_return_types_on_setters: true
56+
avoid_returning_null_for_void: true
57+
avoid_returning_this: true
58+
avoid_setters_without_getters: true
59+
avoid_shadowing_type_parameters: true
60+
avoid_single_cascade_in_expression_statements: true
61+
avoid_slow_async_io: true
62+
avoid_types_as_parameter_names: true
63+
# avoid_types_on_closure_parameters: true # conflicts with always_specify_types
64+
avoid_unnecessary_containers: true
65+
avoid_unused_constructor_parameters: true
66+
avoid_void_async: true
67+
avoid_web_libraries_in_flutter: true
68+
await_only_futures: true
69+
camel_case_extensions: true
70+
camel_case_types: true
71+
cancel_subscriptions: true
72+
cascade_invocations: true
73+
close_sinks: true
74+
comment_references: true
75+
constant_identifier_names: true
76+
control_flow_in_finally: true
77+
curly_braces_in_flow_control_structures: true
78+
diagnostic_describe_all_properties: false
79+
directives_ordering: false
80+
empty_catches: true
81+
empty_constructor_bodies: true
82+
empty_statements: true
83+
flutter_style_todos: true
84+
hash_and_equals: true
85+
implementation_imports: true
86+
invariant_booleans: true
87+
join_return_with_assignment: true
88+
library_names: true
89+
library_prefixes: true
90+
lines_longer_than_80_chars: false # not yet tested FIFIFIFIFIFIFI
91+
literal_only_boolean_expressions: true
92+
missing_whitespace_between_adjacent_strings: true
93+
no_adjacent_strings_in_list: true
94+
no_duplicate_case_values: true
95+
no_logic_in_create_state: true
96+
no_runtimeType_toString: true
97+
non_constant_identifier_names: true
98+
null_closures: true
99+
# omit_local_variable_types: true # opposite of always_specify_types
100+
one_member_abstracts: true
101+
only_throw_errors: true
102+
overridden_fields: false
103+
package_api_docs: true
104+
package_names: true
105+
package_prefixed_library_names: true
106+
parameter_assignments: true # we do this commonly
107+
prefer_adjacent_string_concatenation: true
108+
prefer_asserts_in_initializer_lists: true
109+
prefer_asserts_with_message: true
110+
prefer_collection_literals: true
111+
prefer_conditional_assignment: true
112+
prefer_const_constructors: true
113+
prefer_const_constructors_in_immutables: true
114+
prefer_const_declarations: true
115+
prefer_const_literals_to_create_immutables: true
116+
prefer_constructors_over_static_methods: false
117+
prefer_contains: true
118+
# prefer_double_quotes: true # opposite of prefer_single_quotes
119+
prefer_equal_for_default_values: true
120+
prefer_expression_function_bodies: true # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
121+
prefer_final_fields: true
122+
prefer_final_in_for_each: true
123+
prefer_final_locals: true
124+
prefer_for_elements_to_map_fromIterable: true
125+
prefer_foreach: true
126+
prefer_function_declarations_over_variables: true
127+
prefer_generic_function_type_aliases: true
128+
prefer_if_elements_to_conditional_expressions: true
129+
prefer_if_null_operators: true
130+
prefer_initializing_formals: true
131+
prefer_inlined_adds: true
132+
prefer_int_literals: true
133+
prefer_interpolation_to_compose_strings: true
134+
prefer_is_empty: true
135+
prefer_is_not_empty: true
136+
prefer_is_not_operator: true
137+
prefer_iterable_whereType: true
138+
prefer_mixin: true
139+
prefer_null_aware_operators: true
140+
prefer_relative_imports: true
141+
prefer_single_quotes: true
142+
prefer_spread_collections: true
143+
prefer_typing_uninitialized_variables: true
144+
prefer_void_to_null: true
145+
provide_deprecation_message: true
146+
public_member_api_docs: false
147+
recursive_getters: true
148+
slash_for_doc_comments: true
149+
sort_child_properties_last: true
150+
sort_constructors_first: true
151+
sort_pub_dependencies: false
152+
sort_unnamed_constructors_first: true
153+
test_types_in_equals: true
154+
throw_in_finally: true
155+
type_init_formals: true
156+
unawaited_futures: true
157+
unnecessary_await_in_return: true
158+
unnecessary_brace_in_string_interps: true
159+
unnecessary_const: true
160+
# unnecessary_final: true # conflicts with prefer_final_locals
161+
unnecessary_getters_setters: true
162+
unnecessary_lambdas: true
163+
unnecessary_new: true
164+
unnecessary_null_aware_assignments: true
165+
unnecessary_null_in_if_null_operators: true
166+
unnecessary_overrides: true
167+
unnecessary_parenthesis: true
168+
unnecessary_statements: true
169+
unnecessary_string_interpolations: true
170+
unnecessary_this: true
171+
unrelated_type_equality_checks: true
172+
unsafe_html: true
173+
use_full_hex_values_for_flutter_colors: true
174+
use_function_type_syntax_for_parameters: true
175+
use_key_in_widget_constructors: true
176+
use_rethrow_when_possible: true
177+
use_setters_to_change_properties: false
178+
use_string_buffers: true
179+
use_to_and_as_if_applicable: true
180+
valid_regexps: true
181+
void_checks: true

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/to/reference-keystore
11+
key.properties
12+
**/*.keystore
13+
**/*.jks

android/app/build.gradle

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+
id "dev.flutter.flutter-gradle-plugin"
6+
}
7+
8+
android {
9+
namespace = "com.example.todo_mvc"
10+
compileSdk = flutter.compileSdkVersion
11+
ndkVersion = flutter.ndkVersion
12+
13+
compileOptions {
14+
sourceCompatibility = JavaVersion.VERSION_1_8
15+
targetCompatibility = JavaVersion.VERSION_1_8
16+
}
17+
18+
kotlinOptions {
19+
jvmTarget = JavaVersion.VERSION_1_8
20+
}
21+
22+
defaultConfig {
23+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24+
applicationId = "com.example.todo_mvc"
25+
// You can update the following values to match your application needs.
26+
// For more information, see: https://flutter.dev/to/review-gradle-config.
27+
minSdk = flutter.minSdkVersion
28+
targetSdk = flutter.targetSdkVersion
29+
versionCode = flutter.versionCode
30+
versionName = flutter.versionName
31+
}
32+
33+
buildTypes {
34+
release {
35+
// TODO: Add your own signing config for the release build.
36+
// Signing with the debug keys for now, so `flutter run --release` works.
37+
signingConfig = signingConfigs.debug
38+
}
39+
}
40+
}
41+
42+
flutter {
43+
source = "../.."
44+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- The INTERNET permission is required for development. Specifically,
3+
the Flutter tool needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>

0 commit comments

Comments
 (0)