├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── raccoon
│ │ │ │ └── sorting
│ │ │ │ └── visualizer
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── base
│ ├── base_sort.dart
│ └── base_sort_widget.dart
├── bubble
│ ├── bubble_sort.dart
│ └── bubble_sort_widget.dart
├── config
│ └── config_holder.dart
├── heap
│ ├── heap_sort.dart
│ └── heap_sort_widget.dart
├── holder
│ └── sort_holder.dart
├── insertion
│ ├── insertion_sort.dart
│ └── insertion_sort_widget.dart
├── main.dart
├── merge
│ ├── merge_sort.dart
│ └── merge_sort_widget.dart
├── options_drawer.dart
├── selection
│ ├── selection_sort.dart
│ └── selection_sort_widget.dart
├── sorting_page.dart
├── strings.dart
└── theme
│ └── theme_config.dart
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── app_icon_1024.png
│ │ ├── app_icon_128.png
│ │ ├── app_icon_16.png
│ │ ├── app_icon_256.png
│ │ ├── app_icon_32.png
│ │ ├── app_icon_512.png
│ │ └── app_icon_64.png
│ ├── Base.lproj
│ └── MainMenu.xib
│ ├── Configs
│ ├── AppInfo.xcconfig
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-512.png
├── index.html
└── manifest.json
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 |
36 | # Symbolication related
37 | app.*.symbols
38 |
39 | # Obfuscation related
40 | app.*.map.json
41 |
42 | # Exceptions to above rules.
43 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
44 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
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: bbfbf1770cca2da7c82e887e4e4af910034800b6
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # visualiser
2 |
3 | As I geared up for a potential interview with a FAANG (MANGA) company, I acquired a wealth of new knowledge.
4 | While algorithms can be tedious, why not utilize Flutter for visualization?
5 | Creating visually appealing depictions of sorting algorithms could greatly enhance their comprehension and aesthetic appeal.
6 |
7 | ## Getting Started
8 |
9 | For playing around, adding new algorithms to the project, feel free to copy this repository, or make a pull request with any updates
10 |
11 | Reach me out at LinkedIn: https://www.linkedin.com/in/vpinchuk/
12 |
13 | ## Articles
14 | Medium: https://medium.com/@vad.pinchuk/from-chaos-to-order-achieving-understanding-of-algorithms-through-visualisation-713e06baa7fd
15 | Dev.to: https://dev.to/vadympinchuk/from-chaos-to-order-achieving-understanding-of-algorithms-through-visualisation-81b
16 | HackerNoon: https://hackernoon.com/from-chaos-to-order-achieving-understanding-of-algorithms-through-visualization
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # Specify analysis options.
2 | #
3 | # Until there are meta linter rules, each desired lint must be explicitly enabled.
4 | # See: https://github.com/dart-lang/linter/issues/288
5 | #
6 | # For a list of lints, see: http://dart-lang.github.io/linter/lints/
7 | # See the configuration guide for more
8 | # https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
9 | #
10 | # There are other similar analysis options files in the flutter repos,
11 | # which should be kept in sync with this file:
12 | #
13 | # - analysis_options.yaml (this file)
14 | # - packages/flutter/lib/analysis_options_user.yaml
15 | # - https://github.com/flutter/plugins/blob/master/analysis_options.yaml
16 | # - https://github.com/flutter/engine/blob/master/analysis_options.yaml
17 | #
18 | # This file contains the analysis options used by Flutter tools, such as IntelliJ,
19 | # Android Studio, and the `flutter analyze` command.
20 |
21 | analyzer:
22 | strong-mode:
23 | implicit-casts: false
24 | implicit-dynamic: false
25 | errors:
26 | # treat missing required parameters as a warning (not a hint)
27 | missing_required_param: warning
28 | # treat missing returns as a warning (not a hint)
29 | missing_return: warning
30 | # allow having TODOs in the code
31 | todo: ignore
32 | # allow self-reference to deprecated members (we do this because otherwise we have
33 | # to annotate every member in every test, assert, etc, when we deprecate something)
34 | deprecated_member_use_from_same_package: ignore
35 | # Ignore analyzer hints for updating pubspecs when using Future or
36 | # Stream and not importing dart:async
37 | # Please see https://github.com/flutter/flutter/pull/24528 for details.
38 | sdk_version_async_exported_from_core: ignore
39 | exclude:
40 | - "bin/cache/**"
41 | # the following two are relative to the stocks example and the flutter package respectively
42 | # see https://github.com/dart-lang/sdk/issues/28463
43 | - "lib/i18n/messages_*.dart"
44 | - "lib/src/http/**"
45 |
46 | linter:
47 | rules:
48 | # these rules are documented on and in the same order as
49 | # the Dart Lint rules page to make maintenance easier
50 | # https://github.com/dart-lang/linter/blob/master/example/all.yaml
51 | # - always_declare_return_types
52 | - always_put_control_body_on_new_line
53 | # - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
54 | - always_require_non_null_named_parameters
55 | # - always_specify_types
56 | - annotate_overrides
57 | # - avoid_annotating_with_dynamic # conflicts with always_specify_types
58 | # - avoid_as # required for implicit-casts: true
59 | - avoid_bool_literals_in_conditional_expressions
60 | # - avoid_catches_without_on_clauses # we do this commonly
61 | # - avoid_catching_errors # we do this commonly
62 | - avoid_classes_with_only_static_members
63 | # - avoid_double_and_int_checks # only useful when targeting JS runtime
64 | - avoid_empty_else
65 | - avoid_equals_and_hash_code_on_mutable_classes
66 | - avoid_field_initializers_in_const_classes
67 | - avoid_function_literals_in_foreach_calls
68 | # - avoid_implementing_value_types # not yet tested
69 | - avoid_init_to_null
70 | # - avoid_js_rounded_ints # only useful when targeting JS runtime
71 | - avoid_null_checks_in_equality_operators
72 | # - avoid_positional_boolean_parameters # not yet tested
73 | # - avoid_print # not yet tested
74 | # - avoid_private_typedef_functions # we prefer having typedef (discussion in https://github.com/flutter/flutter/pull/16356)
75 | # - avoid_redundant_argument_values # not yet tested
76 | - avoid_relative_lib_imports
77 | - avoid_renaming_method_parameters
78 | - avoid_return_types_on_setters
79 | # - avoid_returning_null # there are plenty of valid reasons to return null
80 | # - avoid_returning_null_for_future # not yet tested
81 | - avoid_returning_null_for_void
82 | # - avoid_returning_this # there are plenty of valid reasons to return this
83 | # - avoid_setters_without_getters # not yet tested
84 | # - avoid_shadowing_type_parameters # not yet tested
85 | - avoid_single_cascade_in_expression_statements
86 | - avoid_slow_async_io
87 | - avoid_types_as_parameter_names
88 | # - avoid_types_on_closure_parameters # conflicts with always_specify_types
89 | # - avoid_unnecessary_containers # not yet tested
90 | - avoid_unused_constructor_parameters
91 | - avoid_void_async
92 | # - avoid_web_libraries_in_flutter # not yet tested
93 | - await_only_futures
94 | - camel_case_extensions
95 | - camel_case_types
96 | - cancel_subscriptions
97 | # - cascade_invocations # not yet tested
98 | # - close_sinks # not reliable enough
99 | # - comment_references # blocked on https://github.com/flutter/flutter/issues/20765
100 | # - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204
101 | - control_flow_in_finally
102 | # - curly_braces_in_flow_control_structures # not yet tested
103 | # - diagnostic_describe_all_properties # not yet tested
104 | - directives_ordering
105 | - empty_catches
106 | - empty_constructor_bodies
107 | - empty_statements
108 | # - file_names # not yet tested
109 | - flutter_style_todos
110 | - hash_and_equals
111 | - implementation_imports
112 | # - invariant_booleans # too many false positives: https://github.com/dart-lang/linter/issues/811
113 | - iterable_contains_unrelated_type
114 | # - join_return_with_assignment # not yet tested
115 | - library_names
116 | - library_prefixes
117 | # - lines_longer_than_80_chars # not yet tested
118 | - list_remove_unrelated_type
119 | # - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/sdk/issues/34181
120 | # - missing_whitespace_between_adjacent_strings # not yet tested
121 | - no_adjacent_strings_in_list
122 | - no_duplicate_case_values
123 | # - no_logic_in_create_state # not yet tested
124 | # - no_runtimeType_toString # not yet tested
125 | - non_constant_identifier_names
126 | # - null_closures # not yet tested
127 | # - omit_local_variable_types # opposite of always_specify_types
128 | # - one_member_abstracts # too many false positives
129 | # - only_throw_errors # https://github.com/flutter/flutter/issues/5792
130 | - overridden_fields
131 | - package_api_docs
132 | - package_names
133 | - package_prefixed_library_names
134 | # - parameter_assignments # we do this commonly
135 | - prefer_adjacent_string_concatenation
136 | - prefer_asserts_in_initializer_lists
137 | # - prefer_asserts_with_message # not yet tested
138 | - prefer_collection_literals
139 | - prefer_conditional_assignment
140 | - prefer_const_constructors
141 | - prefer_const_constructors_in_immutables
142 | - prefer_const_declarations
143 | - prefer_const_literals_to_create_immutables
144 | # - prefer_constructors_over_static_methods # not yet tested
145 | - prefer_contains
146 | # - prefer_double_quotes # opposite of prefer_single_quotes
147 | - prefer_equal_for_default_values
148 | # - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
149 | - prefer_final_fields
150 | - prefer_final_in_for_each
151 | - prefer_final_locals
152 | - prefer_for_elements_to_map_fromIterable
153 | - prefer_foreach
154 | # - prefer_function_declarations_over_variables # not yet tested
155 | - prefer_generic_function_type_aliases
156 | - prefer_if_elements_to_conditional_expressions
157 | - prefer_if_null_operators
158 | - prefer_initializing_formals
159 | - prefer_inlined_adds
160 | # - prefer_int_literals # not yet tested
161 | # - prefer_interpolation_to_compose_strings # not yet tested
162 | - prefer_is_empty
163 | - prefer_is_not_empty
164 | - prefer_is_not_operator
165 | - prefer_iterable_whereType
166 | # - prefer_mixin # https://github.com/dart-lang/language/issues/32
167 | # - prefer_null_aware_operators # disable until NNBD, see https://github.com/flutter/flutter/pull/32711#issuecomment-492930932
168 | # - prefer_relative_imports # not yet tested
169 | - prefer_single_quotes
170 | - prefer_spread_collections
171 | # - prefer_typing_uninitialized_variables
172 | - prefer_void_to_null
173 | # - provide_deprecation_message # not yet tested
174 | # - public_member_api_docs # enabled on a case-by-case basis; see e.g. packages/analysis_options.yaml
175 | - recursive_getters
176 | - slash_for_doc_comments
177 | # - sort_child_properties_last # not yet tested
178 | - sort_constructors_first
179 | - sort_pub_dependencies
180 | - sort_unnamed_constructors_first
181 | - test_types_in_equals
182 | - throw_in_finally
183 | # - type_annotate_public_apis # subset of always_specify_types
184 | - type_init_formals
185 | # - unawaited_futures # too many false positives
186 | # - unnecessary_await_in_return # not yet tested
187 | - unnecessary_brace_in_string_interps
188 | - unnecessary_const
189 | # - unnecessary_final # conflicts with prefer_final_locals
190 | - unnecessary_getters_setters
191 | # - unnecessary_lambdas # has false positives: https://github.com/dart-lang/linter/issues/498
192 | - unnecessary_new
193 | - unnecessary_null_aware_assignments
194 | - unnecessary_null_in_if_null_operators
195 | - unnecessary_overrides
196 | - unnecessary_parenthesis
197 | - unnecessary_statements
198 | - unnecessary_string_interpolations
199 | - unnecessary_this
200 | - unrelated_type_equality_checks
201 | # - unsafe_html # not yet tested
202 | - use_full_hex_values_for_flutter_colors
203 | # - use_function_type_syntax_for_parameters # not yet tested
204 | # - use_key_in_widget_constructors # not yet tested
205 | - use_rethrow_when_possible
206 | # - use_setters_to_change_properties # not yet tested
207 | # - use_string_buffers # has false positives: https://github.com/dart-lang/sdk/issues/34182
208 | # - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review
209 | - valid_regexps
210 | - void_checks
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
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 | lintOptions {
46 | disable 'InvalidPackage'
47 | }
48 |
49 | defaultConfig {
50 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
51 | applicationId "com.raccoon.sorting.visualizer"
52 | minSdkVersion 16
53 | targetSdkVersion 33
54 | versionCode flutterVersionCode.toInteger()
55 | versionName flutterVersionName
56 | }
57 |
58 | buildTypes {
59 | release {
60 | // TODO: Add your own signing config for the release build.
61 | // Signing with the debug keys for now, so `flutter run --release` works.
62 | signingConfig signingConfigs.debug
63 | }
64 | }
65 | }
66 |
67 | flutter {
68 | source '../..'
69 | }
70 |
71 | dependencies {
72 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
73 | }
74 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
12 |
20 |
24 |
27 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
42 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/raccoon/sorting/visualizer/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.raccoon.sorting.visualizer
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | -
6 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.8.0'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.2.2'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 |
30 | task clean(type: Delete) {
31 | delete rootProject.buildDir
32 | }
33 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - shared_preferences (0.0.1):
4 | - Flutter
5 |
6 | DEPENDENCIES:
7 | - Flutter (from `Flutter`)
8 | - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
9 |
10 | EXTERNAL SOURCES:
11 | Flutter:
12 | :path: Flutter
13 | shared_preferences:
14 | :path: ".symlinks/plugins/shared_preferences/ios"
15 |
16 | SPEC CHECKSUMS:
17 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
18 | shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
19 |
20 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
21 |
22 | COCOAPODS: 1.9.3
23 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 64D65A9B1B7036540F2AB74E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1207D1EAFEC2DE68AC5F433C /* Pods_Runner.framework */; };
13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 1207D1EAFEC2DE68AC5F433C /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
34 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
35 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
37 | 51ECA47CD7DE542979CE4500 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
38 | 5CE94C8BB0FC6969C9259E35 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
39 | 666A0C6BFA092509ACC082BC /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
40 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
41 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
42 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
43 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
44 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
45 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
46 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
47 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
48 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
49 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | 64D65A9B1B7036540F2AB74E /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 30B07929AFB5F2675DF57903 /* Frameworks */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 1207D1EAFEC2DE68AC5F433C /* Pods_Runner.framework */,
68 | );
69 | name = Frameworks;
70 | sourceTree = "";
71 | };
72 | 7E25EFF6569B3FC68E943929 /* Pods */ = {
73 | isa = PBXGroup;
74 | children = (
75 | 666A0C6BFA092509ACC082BC /* Pods-Runner.debug.xcconfig */,
76 | 51ECA47CD7DE542979CE4500 /* Pods-Runner.release.xcconfig */,
77 | 5CE94C8BB0FC6969C9259E35 /* Pods-Runner.profile.xcconfig */,
78 | );
79 | name = Pods;
80 | path = Pods;
81 | sourceTree = "";
82 | };
83 | 9740EEB11CF90186004384FC /* Flutter */ = {
84 | isa = PBXGroup;
85 | children = (
86 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
88 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
89 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
90 | );
91 | name = Flutter;
92 | sourceTree = "";
93 | };
94 | 97C146E51CF9000F007C117D = {
95 | isa = PBXGroup;
96 | children = (
97 | 9740EEB11CF90186004384FC /* Flutter */,
98 | 97C146F01CF9000F007C117D /* Runner */,
99 | 97C146EF1CF9000F007C117D /* Products */,
100 | 7E25EFF6569B3FC68E943929 /* Pods */,
101 | 30B07929AFB5F2675DF57903 /* Frameworks */,
102 | );
103 | sourceTree = "";
104 | };
105 | 97C146EF1CF9000F007C117D /* Products */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 97C146EE1CF9000F007C117D /* Runner.app */,
109 | );
110 | name = Products;
111 | sourceTree = "";
112 | };
113 | 97C146F01CF9000F007C117D /* Runner */ = {
114 | isa = PBXGroup;
115 | children = (
116 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
117 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
118 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
119 | 97C147021CF9000F007C117D /* Info.plist */,
120 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
121 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
122 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
123 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
124 | );
125 | path = Runner;
126 | sourceTree = "";
127 | };
128 | /* End PBXGroup section */
129 |
130 | /* Begin PBXNativeTarget section */
131 | 97C146ED1CF9000F007C117D /* Runner */ = {
132 | isa = PBXNativeTarget;
133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
134 | buildPhases = (
135 | C039A6B017D797D5406C6508 /* [CP] Check Pods Manifest.lock */,
136 | 9740EEB61CF901F6004384FC /* Run Script */,
137 | 97C146EA1CF9000F007C117D /* Sources */,
138 | 97C146EB1CF9000F007C117D /* Frameworks */,
139 | 97C146EC1CF9000F007C117D /* Resources */,
140 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
142 | F37768BE643491EF586AE941 /* [CP] Embed Pods Frameworks */,
143 | );
144 | buildRules = (
145 | );
146 | dependencies = (
147 | );
148 | name = Runner;
149 | productName = Runner;
150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
151 | productType = "com.apple.product-type.application";
152 | };
153 | /* End PBXNativeTarget section */
154 |
155 | /* Begin PBXProject section */
156 | 97C146E61CF9000F007C117D /* Project object */ = {
157 | isa = PBXProject;
158 | attributes = {
159 | LastUpgradeCheck = 1020;
160 | ORGANIZATIONNAME = "";
161 | TargetAttributes = {
162 | 97C146ED1CF9000F007C117D = {
163 | CreatedOnToolsVersion = 7.3.1;
164 | LastSwiftMigration = 1100;
165 | };
166 | };
167 | };
168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
169 | compatibilityVersion = "Xcode 9.3";
170 | developmentRegion = en;
171 | hasScannedForEncodings = 0;
172 | knownRegions = (
173 | en,
174 | Base,
175 | );
176 | mainGroup = 97C146E51CF9000F007C117D;
177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
178 | projectDirPath = "";
179 | projectRoot = "";
180 | targets = (
181 | 97C146ED1CF9000F007C117D /* Runner */,
182 | );
183 | };
184 | /* End PBXProject section */
185 |
186 | /* Begin PBXResourcesBuildPhase section */
187 | 97C146EC1CF9000F007C117D /* Resources */ = {
188 | isa = PBXResourcesBuildPhase;
189 | buildActionMask = 2147483647;
190 | files = (
191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | /* End PBXResourcesBuildPhase section */
199 |
200 | /* Begin PBXShellScriptBuildPhase section */
201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
202 | isa = PBXShellScriptBuildPhase;
203 | buildActionMask = 2147483647;
204 | files = (
205 | );
206 | inputPaths = (
207 | );
208 | name = "Thin Binary";
209 | outputPaths = (
210 | );
211 | runOnlyForDeploymentPostprocessing = 0;
212 | shellPath = /bin/sh;
213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
214 | };
215 | 9740EEB61CF901F6004384FC /* Run Script */ = {
216 | isa = PBXShellScriptBuildPhase;
217 | buildActionMask = 2147483647;
218 | files = (
219 | );
220 | inputPaths = (
221 | );
222 | name = "Run Script";
223 | outputPaths = (
224 | );
225 | runOnlyForDeploymentPostprocessing = 0;
226 | shellPath = /bin/sh;
227 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
228 | };
229 | C039A6B017D797D5406C6508 /* [CP] Check Pods Manifest.lock */ = {
230 | isa = PBXShellScriptBuildPhase;
231 | buildActionMask = 2147483647;
232 | files = (
233 | );
234 | inputFileListPaths = (
235 | );
236 | inputPaths = (
237 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
238 | "${PODS_ROOT}/Manifest.lock",
239 | );
240 | name = "[CP] Check Pods Manifest.lock";
241 | outputFileListPaths = (
242 | );
243 | outputPaths = (
244 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
245 | );
246 | runOnlyForDeploymentPostprocessing = 0;
247 | shellPath = /bin/sh;
248 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
249 | showEnvVarsInLog = 0;
250 | };
251 | F37768BE643491EF586AE941 /* [CP] Embed Pods Frameworks */ = {
252 | isa = PBXShellScriptBuildPhase;
253 | buildActionMask = 2147483647;
254 | files = (
255 | );
256 | inputPaths = (
257 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
258 | "${PODS_ROOT}/../Flutter/Flutter.framework",
259 | "${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
260 | );
261 | name = "[CP] Embed Pods Frameworks";
262 | outputPaths = (
263 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
264 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
265 | );
266 | runOnlyForDeploymentPostprocessing = 0;
267 | shellPath = /bin/sh;
268 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
269 | showEnvVarsInLog = 0;
270 | };
271 | /* End PBXShellScriptBuildPhase section */
272 |
273 | /* Begin PBXSourcesBuildPhase section */
274 | 97C146EA1CF9000F007C117D /* Sources */ = {
275 | isa = PBXSourcesBuildPhase;
276 | buildActionMask = 2147483647;
277 | files = (
278 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
279 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
280 | );
281 | runOnlyForDeploymentPostprocessing = 0;
282 | };
283 | /* End PBXSourcesBuildPhase section */
284 |
285 | /* Begin PBXVariantGroup section */
286 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
287 | isa = PBXVariantGroup;
288 | children = (
289 | 97C146FB1CF9000F007C117D /* Base */,
290 | );
291 | name = Main.storyboard;
292 | sourceTree = "";
293 | };
294 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
295 | isa = PBXVariantGroup;
296 | children = (
297 | 97C147001CF9000F007C117D /* Base */,
298 | );
299 | name = LaunchScreen.storyboard;
300 | sourceTree = "";
301 | };
302 | /* End PBXVariantGroup section */
303 |
304 | /* Begin XCBuildConfiguration section */
305 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
306 | isa = XCBuildConfiguration;
307 | buildSettings = {
308 | ALWAYS_SEARCH_USER_PATHS = NO;
309 | CLANG_ANALYZER_NONNULL = YES;
310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
311 | CLANG_CXX_LIBRARY = "libc++";
312 | CLANG_ENABLE_MODULES = YES;
313 | CLANG_ENABLE_OBJC_ARC = YES;
314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
315 | CLANG_WARN_BOOL_CONVERSION = YES;
316 | CLANG_WARN_COMMA = YES;
317 | CLANG_WARN_CONSTANT_CONVERSION = YES;
318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
320 | CLANG_WARN_EMPTY_BODY = YES;
321 | CLANG_WARN_ENUM_CONVERSION = YES;
322 | CLANG_WARN_INFINITE_RECURSION = YES;
323 | CLANG_WARN_INT_CONVERSION = YES;
324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
329 | CLANG_WARN_STRICT_PROTOTYPES = YES;
330 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
331 | CLANG_WARN_UNREACHABLE_CODE = YES;
332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
334 | COPY_PHASE_STRIP = NO;
335 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
336 | ENABLE_NS_ASSERTIONS = NO;
337 | ENABLE_STRICT_OBJC_MSGSEND = YES;
338 | GCC_C_LANGUAGE_STANDARD = gnu99;
339 | GCC_NO_COMMON_BLOCKS = YES;
340 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
341 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
342 | GCC_WARN_UNDECLARED_SELECTOR = YES;
343 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
344 | GCC_WARN_UNUSED_FUNCTION = YES;
345 | GCC_WARN_UNUSED_VARIABLE = YES;
346 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
347 | MTL_ENABLE_DEBUG_INFO = NO;
348 | SDKROOT = iphoneos;
349 | SUPPORTED_PLATFORMS = iphoneos;
350 | TARGETED_DEVICE_FAMILY = "1,2";
351 | VALIDATE_PRODUCT = YES;
352 | };
353 | name = Profile;
354 | };
355 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
356 | isa = XCBuildConfiguration;
357 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
358 | buildSettings = {
359 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
360 | CLANG_ENABLE_MODULES = YES;
361 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
362 | ENABLE_BITCODE = NO;
363 | FRAMEWORK_SEARCH_PATHS = (
364 | "$(inherited)",
365 | "$(PROJECT_DIR)/Flutter",
366 | );
367 | INFOPLIST_FILE = Runner/Info.plist;
368 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
369 | LIBRARY_SEARCH_PATHS = (
370 | "$(inherited)",
371 | "$(PROJECT_DIR)/Flutter",
372 | );
373 | PRODUCT_BUNDLE_IDENTIFIER = com.raccoon.sorting.visualizer;
374 | PRODUCT_NAME = "$(TARGET_NAME)";
375 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
376 | SWIFT_VERSION = 5.0;
377 | VERSIONING_SYSTEM = "apple-generic";
378 | };
379 | name = Profile;
380 | };
381 | 97C147031CF9000F007C117D /* Debug */ = {
382 | isa = XCBuildConfiguration;
383 | buildSettings = {
384 | ALWAYS_SEARCH_USER_PATHS = NO;
385 | CLANG_ANALYZER_NONNULL = YES;
386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
387 | CLANG_CXX_LIBRARY = "libc++";
388 | CLANG_ENABLE_MODULES = YES;
389 | CLANG_ENABLE_OBJC_ARC = YES;
390 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
391 | CLANG_WARN_BOOL_CONVERSION = YES;
392 | CLANG_WARN_COMMA = YES;
393 | CLANG_WARN_CONSTANT_CONVERSION = YES;
394 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
395 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
396 | CLANG_WARN_EMPTY_BODY = YES;
397 | CLANG_WARN_ENUM_CONVERSION = YES;
398 | CLANG_WARN_INFINITE_RECURSION = YES;
399 | CLANG_WARN_INT_CONVERSION = YES;
400 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
401 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
402 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
403 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
404 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
405 | CLANG_WARN_STRICT_PROTOTYPES = YES;
406 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
407 | CLANG_WARN_UNREACHABLE_CODE = YES;
408 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
409 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
410 | COPY_PHASE_STRIP = NO;
411 | DEBUG_INFORMATION_FORMAT = dwarf;
412 | ENABLE_STRICT_OBJC_MSGSEND = YES;
413 | ENABLE_TESTABILITY = YES;
414 | GCC_C_LANGUAGE_STANDARD = gnu99;
415 | GCC_DYNAMIC_NO_PIC = NO;
416 | GCC_NO_COMMON_BLOCKS = YES;
417 | GCC_OPTIMIZATION_LEVEL = 0;
418 | GCC_PREPROCESSOR_DEFINITIONS = (
419 | "DEBUG=1",
420 | "$(inherited)",
421 | );
422 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
423 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
424 | GCC_WARN_UNDECLARED_SELECTOR = YES;
425 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
426 | GCC_WARN_UNUSED_FUNCTION = YES;
427 | GCC_WARN_UNUSED_VARIABLE = YES;
428 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
429 | MTL_ENABLE_DEBUG_INFO = YES;
430 | ONLY_ACTIVE_ARCH = YES;
431 | SDKROOT = iphoneos;
432 | TARGETED_DEVICE_FAMILY = "1,2";
433 | };
434 | name = Debug;
435 | };
436 | 97C147041CF9000F007C117D /* Release */ = {
437 | isa = XCBuildConfiguration;
438 | buildSettings = {
439 | ALWAYS_SEARCH_USER_PATHS = NO;
440 | CLANG_ANALYZER_NONNULL = YES;
441 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
442 | CLANG_CXX_LIBRARY = "libc++";
443 | CLANG_ENABLE_MODULES = YES;
444 | CLANG_ENABLE_OBJC_ARC = YES;
445 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
446 | CLANG_WARN_BOOL_CONVERSION = YES;
447 | CLANG_WARN_COMMA = YES;
448 | CLANG_WARN_CONSTANT_CONVERSION = YES;
449 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
450 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
451 | CLANG_WARN_EMPTY_BODY = YES;
452 | CLANG_WARN_ENUM_CONVERSION = YES;
453 | CLANG_WARN_INFINITE_RECURSION = YES;
454 | CLANG_WARN_INT_CONVERSION = YES;
455 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
456 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
457 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
458 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
459 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
460 | CLANG_WARN_STRICT_PROTOTYPES = YES;
461 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
462 | CLANG_WARN_UNREACHABLE_CODE = YES;
463 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
464 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
465 | COPY_PHASE_STRIP = NO;
466 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
467 | ENABLE_NS_ASSERTIONS = NO;
468 | ENABLE_STRICT_OBJC_MSGSEND = YES;
469 | GCC_C_LANGUAGE_STANDARD = gnu99;
470 | GCC_NO_COMMON_BLOCKS = YES;
471 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
472 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
473 | GCC_WARN_UNDECLARED_SELECTOR = YES;
474 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
475 | GCC_WARN_UNUSED_FUNCTION = YES;
476 | GCC_WARN_UNUSED_VARIABLE = YES;
477 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
478 | MTL_ENABLE_DEBUG_INFO = NO;
479 | SDKROOT = iphoneos;
480 | SUPPORTED_PLATFORMS = iphoneos;
481 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
482 | TARGETED_DEVICE_FAMILY = "1,2";
483 | VALIDATE_PRODUCT = YES;
484 | };
485 | name = Release;
486 | };
487 | 97C147061CF9000F007C117D /* Debug */ = {
488 | isa = XCBuildConfiguration;
489 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
490 | buildSettings = {
491 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
492 | CLANG_ENABLE_MODULES = YES;
493 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
494 | ENABLE_BITCODE = NO;
495 | FRAMEWORK_SEARCH_PATHS = (
496 | "$(inherited)",
497 | "$(PROJECT_DIR)/Flutter",
498 | );
499 | INFOPLIST_FILE = Runner/Info.plist;
500 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
501 | LIBRARY_SEARCH_PATHS = (
502 | "$(inherited)",
503 | "$(PROJECT_DIR)/Flutter",
504 | );
505 | PRODUCT_BUNDLE_IDENTIFIER = com.raccoon.sorting.visualizer;
506 | PRODUCT_NAME = "$(TARGET_NAME)";
507 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
508 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
509 | SWIFT_VERSION = 5.0;
510 | VERSIONING_SYSTEM = "apple-generic";
511 | };
512 | name = Debug;
513 | };
514 | 97C147071CF9000F007C117D /* Release */ = {
515 | isa = XCBuildConfiguration;
516 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
517 | buildSettings = {
518 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
519 | CLANG_ENABLE_MODULES = YES;
520 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
521 | ENABLE_BITCODE = NO;
522 | FRAMEWORK_SEARCH_PATHS = (
523 | "$(inherited)",
524 | "$(PROJECT_DIR)/Flutter",
525 | );
526 | INFOPLIST_FILE = Runner/Info.plist;
527 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
528 | LIBRARY_SEARCH_PATHS = (
529 | "$(inherited)",
530 | "$(PROJECT_DIR)/Flutter",
531 | );
532 | PRODUCT_BUNDLE_IDENTIFIER = com.raccoon.sorting.visualizer;
533 | PRODUCT_NAME = "$(TARGET_NAME)";
534 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
535 | SWIFT_VERSION = 5.0;
536 | VERSIONING_SYSTEM = "apple-generic";
537 | };
538 | name = Release;
539 | };
540 | /* End XCBuildConfiguration section */
541 |
542 | /* Begin XCConfigurationList section */
543 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
544 | isa = XCConfigurationList;
545 | buildConfigurations = (
546 | 97C147031CF9000F007C117D /* Debug */,
547 | 97C147041CF9000F007C117D /* Release */,
548 | 249021D3217E4FDB00AE95B9 /* Profile */,
549 | );
550 | defaultConfigurationIsVisible = 0;
551 | defaultConfigurationName = Release;
552 | };
553 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
554 | isa = XCConfigurationList;
555 | buildConfigurations = (
556 | 97C147061CF9000F007C117D /* Debug */,
557 | 97C147071CF9000F007C117D /* Release */,
558 | 249021D4217E4FDB00AE95B9 /* Profile */,
559 | );
560 | defaultConfigurationIsVisible = 0;
561 | defaultConfigurationName = Release;
562 | };
563 | /* End XCConfigurationList section */
564 | };
565 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
566 | }
567 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | visualizer
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/base/base_sort.dart:
--------------------------------------------------------------------------------
1 | import 'dart:core';
2 | import 'dart:math';
3 |
4 | import 'package:flutter/widgets.dart';
5 |
6 | class BaseSort with ChangeNotifier {
7 | BaseSort() {
8 | generateData();
9 | }
10 |
11 | List array = List.empty(growable: true);
12 |
13 | int left = -1;
14 | int right = -1;
15 | int sorted = -1;
16 |
17 | bool isSorting = false;
18 |
19 | @mustCallSuper
20 | void generateData() {
21 | array.clear();
22 | isSorting = false;
23 | int counter = 0;
24 | final rand = Random();
25 | left = -1;
26 | right = -1;
27 | sorted = -1;
28 |
29 | while (counter < 50) {
30 | // to show anything in case of 0 -> shifting it to 1
31 | array.add(rand.nextInt(99) + 1);
32 | counter++;
33 | notifyListeners();
34 | }
35 | }
36 |
37 | Future startSorting() async {}
38 |
39 | Future sleep() async {
40 | await Future.delayed(const Duration(milliseconds: 150), () {});
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/lib/base/base_sort_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:collection/collection.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:provider/provider.dart';
4 | import 'package:visualizer/config/config_holder.dart';
5 | import 'package:visualizer/theme/theme_config.dart';
6 |
7 | /// Basic widget configurations to be used in one place for simplicity
8 | abstract class BaseSortWidget extends StatelessWidget {
9 | @override
10 | Widget build(BuildContext context) => Card(
11 | margin: const EdgeInsets.all(8.0),
12 | elevation: 2.0,
13 | shape: const RoundedRectangleBorder(
14 | borderRadius: BorderRadius.all(Radius.circular(12.0)),
15 | ),
16 | child: Padding(
17 | padding: const EdgeInsets.all(12.0),
18 | child: Column(
19 | mainAxisAlignment: MainAxisAlignment.center,
20 | children: [
21 | Text(
22 | algorithmName(),
23 | style: const TextStyle(fontWeight: FontWeight.bold),
24 | textAlign: TextAlign.center,
25 | ),
26 | const SizedBox(height: 10),
27 | consumerWidget(),
28 | const SizedBox(height: 10),
29 | Text(
30 | algorithmComplexity(),
31 | style: const TextStyle(fontWeight: FontWeight.bold),
32 | textAlign: TextAlign.center,
33 | ),
34 | ],
35 | ),
36 | ),
37 | );
38 |
39 | String algorithmName();
40 |
41 | Widget consumerWidget();
42 |
43 | String algorithmComplexity();
44 |
45 | List buildItemsArray(
46 | List array,
47 | int left,
48 | int right,
49 | int sorted,
50 | Color sortedColor,
51 | ) =>
52 | array
53 | .mapIndexed(
54 | (idx, value) => Expanded(
55 | flex: idx == left || idx == right ? 2 : 1,
56 | child: Consumer(
57 | builder: (context, config, _) => config.showNumbers
58 | ? Column(
59 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
60 | crossAxisAlignment: CrossAxisAlignment.center,
61 | children: [
62 | valueText(idx, value, left, right),
63 | oneItem(idx, value, left, right, sorted, sortedColor)
64 | ],
65 | )
66 | : oneItem(idx, value, left, right, sorted, sortedColor),
67 | ),
68 | ),
69 | )
70 | .toList();
71 |
72 | Widget valueText(
73 | int idx,
74 | int value,
75 | int left,
76 | int right,
77 | ) =>
78 | Consumer(
79 | builder: (context, config, _) => Text(
80 | value.toString(),
81 | style: config.theme.textTheme.bodySmall!.copyWith(
82 | fontSize: 9,
83 | color: idx == left || idx == right
84 | ? config.theme.colorScheme.secondary
85 | : config.theme.textTheme.bodySmall!.color),
86 | ),
87 | );
88 |
89 | Widget oneItem(
90 | int idx,
91 | int value,
92 | int left,
93 | int right,
94 | int sorted,
95 | Color sortedColor,
96 | ) =>
97 | Consumer(
98 | builder: (context, config, _) => Container(
99 | height: value.toDouble(),
100 | margin: const EdgeInsets.all(1.3),
101 | color: idx == left
102 | ? Colors.yellow
103 | : (idx == right
104 | ? Colors.red
105 | : (idx >= sorted
106 | ? sortedColor
107 | : config.theme.colorScheme.secondary)),
108 | ),
109 | );
110 | }
111 |
--------------------------------------------------------------------------------
/lib/bubble/bubble_sort.dart:
--------------------------------------------------------------------------------
1 | import 'package:visualizer/base/base_sort.dart';
2 |
3 | class BubbleSort extends BaseSort {
4 | BubbleSort() : super();
5 |
6 | @override
7 | void generateData() {
8 | super.generateData();
9 | sorted = array.length;
10 | notifyListeners();
11 | }
12 |
13 | @override
14 | Future startSorting() async {
15 | if (isSorting) return;
16 |
17 | bool isChanged = true;
18 | int counter = 0;
19 | isSorting = true;
20 | while (isSorting && isChanged) {
21 | isChanged = false;
22 | for (int i = 0; i < array.length - 1 - counter; i++) {
23 | if (!isSorting) {
24 | return;
25 | }
26 | left = i;
27 | right = i + 1;
28 | notifyListeners();
29 | if (array[left] > array[right]) {
30 | notifyListeners();
31 | isChanged = true;
32 | final int tmp = array[left];
33 | array[left] = array[right];
34 | array[right] = tmp;
35 | await sleep();
36 | }
37 | }
38 | sorted = array.length - 1 - counter;
39 | counter++;
40 | notifyListeners();
41 | }
42 | left = -1;
43 | right = -1;
44 | sorted = 0;
45 | notifyListeners();
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/lib/bubble/bubble_sort_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:visualizer/base/base_sort_widget.dart';
4 | import 'package:visualizer/bubble/bubble_sort.dart';
5 | import 'package:visualizer/strings.dart';
6 |
7 | class BubbleSortWidget extends BaseSortWidget {
8 | @override
9 | String algorithmName() => BUBBLE_SORT;
10 |
11 | @override
12 | String algorithmComplexity() => 'Best O(n) Worst O(n^2) time';
13 |
14 | @override
15 | Widget consumerWidget() => Consumer(
16 | builder: (context, state, _) => Row(
17 | mainAxisAlignment: MainAxisAlignment.center,
18 | crossAxisAlignment: CrossAxisAlignment.end,
19 | children: buildItemsArray(
20 | state.array,
21 | state.left,
22 | state.right,
23 | state.sorted,
24 | Colors.green[800]!,
25 | ),
26 | ),
27 | );
28 | }
29 |
--------------------------------------------------------------------------------
/lib/config/config_holder.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import 'package:shared_preferences/shared_preferences.dart';
3 |
4 | class ConfigHolder extends ChangeNotifier {
5 | ConfigHolder() {
6 | _initialConfig();
7 | }
8 |
9 | bool _showNumbers = false;
10 |
11 | bool get showNumbers => _showNumbers;
12 |
13 | void switchNumberDisplaying() {
14 | _showNumbers = !_showNumbers;
15 | notifyListeners();
16 | _saveConfigs();
17 | }
18 |
19 | int _sleepTime = 50;
20 |
21 | int get sleepTime => _sleepTime;
22 |
23 | set sleepTime(int value) {
24 | _sleepTime = value;
25 | notifyListeners();
26 | _saveConfigs();
27 | }
28 |
29 | Future _initialConfig() async {
30 | final SharedPreferences prefs = await SharedPreferences.getInstance();
31 | _sleepTime = prefs.getInt('sleepTime') ?? 50;
32 | _showNumbers = prefs.getBool('showNumbers') ?? false;
33 | notifyListeners();
34 | }
35 |
36 | Future _saveConfigs() async {
37 | await SharedPreferences.getInstance().then((prefs) => prefs
38 | ..setInt('sleepTime', _sleepTime)
39 | ..setBool('showNumbers', _showNumbers));
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/lib/heap/heap_sort.dart:
--------------------------------------------------------------------------------
1 | import 'dart:core';
2 |
3 | import 'package:visualizer/base/base_sort.dart';
4 |
5 | class HeapSort extends BaseSort {
6 | HeapSort() : super();
7 |
8 | @override
9 | void generateData() {
10 | super.generateData();
11 | sorted = array.length;
12 | notifyListeners();
13 | }
14 |
15 | @override
16 | Future startSorting() async {
17 | // prevent from double click
18 | if (isSorting) return;
19 |
20 | isSorting = true;
21 | // build max heap first
22 | await buildMaxHeap();
23 |
24 | // start sorting
25 | left = 0;
26 | sorted = array.length;
27 | while (sorted > 0) {
28 | // interrupt when data changed
29 | if (!isSorting) return;
30 | sorted--;
31 | await swap(left, sorted);
32 | await siftDown(left, sorted);
33 | }
34 | left = -1;
35 | right = -1;
36 | notifyListeners();
37 | }
38 |
39 | // O(n) time to build
40 | Future buildMaxHeap() async {
41 | sorted = array.length;
42 | left = parentI(array.length - 1);
43 | while (left >= 0) {
44 | await siftDown(left, array.length);
45 | left--;
46 | }
47 | left = -1;
48 | right = -1;
49 | }
50 |
51 | int parentI(int childI) => (childI - 1) ~/ 2;
52 |
53 | int childOI(int parentI) => parentI * 2 + 1;
54 |
55 | int childTI(int parentI) => parentI * 2 + 2;
56 |
57 | // O(1) operation
58 | Future swap(int i, int j) async {
59 | if (!isSorting) return;
60 | final int tmp = array[i];
61 | array[i] = array[j];
62 | array[j] = tmp;
63 | notifyListeners();
64 | await sleep();
65 | }
66 |
67 | // O(log(n)) time
68 | // sift down exclusively
69 | Future siftDown(int start, int end) async {
70 | int chOneI = childOI(start);
71 | while (chOneI < end) {
72 | if (!isSorting) return;
73 |
74 | final int chTwoI = childTI(start) < end ? childTI(start) : -1;
75 | if (chTwoI != -1 && array[chTwoI] > array[chOneI]) {
76 | right = chTwoI;
77 | } else {
78 | right = chOneI;
79 | }
80 | if (array[right] > array[start]) {
81 | await swap(start, right);
82 | start = right;
83 | chOneI = childOI(start);
84 | } else {
85 | break;
86 | }
87 | notifyListeners();
88 | }
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/lib/heap/heap_sort_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:visualizer/base/base_sort_widget.dart';
4 | import 'package:visualizer/heap/heap_sort.dart';
5 | import 'package:visualizer/strings.dart';
6 |
7 | class HeapSortWidget extends BaseSortWidget {
8 | @override
9 | String algorithmName() => HEAP_SORT;
10 |
11 | @override
12 | String algorithmComplexity() => 'Time: O(n*log(n)) Space: O(1)';
13 |
14 | @override
15 | Widget consumerWidget() => Consumer(
16 | builder: (context, state, _) => Row(
17 | mainAxisAlignment: MainAxisAlignment.center,
18 | crossAxisAlignment: CrossAxisAlignment.end,
19 | children: buildItemsArray(
20 | state.array,
21 | state.left,
22 | state.right,
23 | state.sorted,
24 | Colors.cyan,
25 | ),
26 | ),
27 | );
28 | }
29 |
--------------------------------------------------------------------------------
/lib/holder/sort_holder.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:shared_preferences/shared_preferences.dart';
4 | import 'package:visualizer/bubble/bubble_sort.dart';
5 | import 'package:visualizer/bubble/bubble_sort_widget.dart';
6 | import 'package:visualizer/heap/heap_sort.dart';
7 | import 'package:visualizer/heap/heap_sort_widget.dart';
8 | import 'package:visualizer/insertion/insertion_sort.dart';
9 | import 'package:visualizer/insertion/insertion_sort_widget.dart';
10 | import 'package:visualizer/merge/merge_sort.dart';
11 | import 'package:visualizer/merge/merge_sort_widget.dart';
12 | import 'package:visualizer/selection/selection_sort.dart';
13 | import 'package:visualizer/selection/selection_sort_widget.dart';
14 |
15 | enum Sorting { Merge, Heap, Insertion, Selection, Bubble }
16 |
17 | class SortHolder extends ChangeNotifier {
18 | SortHolder() {
19 | _initialConfig();
20 | }
21 |
22 | final _sortingSet = {};
23 |
24 | Set get sortingSet => _sortingSet;
25 |
26 | bool contains(Sorting type) => sortingSet.contains(type);
27 |
28 | Future switchSorting(Sorting type) async {
29 | if (_sortingSet.contains(type)) {
30 | _sortingSet.remove(type);
31 | } else {
32 | _sortingSet.add(type);
33 | }
34 | notifyListeners();
35 | await _saveSelection();
36 | }
37 |
38 | List generateWidgets(BuildContext context) {
39 | final list = [];
40 | for (final Sorting type in _sortingSet) {
41 | switch (type) {
42 | case Sorting.Merge:
43 | list.add(MergeSortWidget());
44 | break;
45 | case Sorting.Heap:
46 | list.add(HeapSortWidget());
47 | break;
48 | case Sorting.Bubble:
49 | list.add(BubbleSortWidget());
50 | break;
51 | case Sorting.Insertion:
52 | list.add(InsertionSortWidget());
53 | break;
54 | case Sorting.Selection:
55 | list.add(SelectionSortWidget());
56 | break;
57 | }
58 | }
59 | return list;
60 | }
61 |
62 | void shuffleData(BuildContext context) {
63 | for (final Sorting type in _sortingSet) {
64 | switch (type) {
65 | case Sorting.Merge:
66 | Provider.of(context, listen: false).generateData();
67 | break;
68 | case Sorting.Heap:
69 | Provider.of(context, listen: false).generateData();
70 | break;
71 | case Sorting.Bubble:
72 | Provider.of(context, listen: false).generateData();
73 | break;
74 | case Sorting.Insertion:
75 | Provider.of(context, listen: false).generateData();
76 | break;
77 | case Sorting.Selection:
78 | Provider.of(context, listen: false).generateData();
79 | break;
80 | }
81 | }
82 | }
83 |
84 | void startSorting(BuildContext context) {
85 | for (final Sorting type in _sortingSet) {
86 | switch (type) {
87 | case Sorting.Merge:
88 | Provider.of(context, listen: false).startSorting();
89 | break;
90 | case Sorting.Heap:
91 | Provider.of(context, listen: false).startSorting();
92 | break;
93 | case Sorting.Bubble:
94 | Provider.of(context, listen: false).startSorting();
95 | break;
96 | case Sorting.Insertion:
97 | Provider.of(context, listen: false).startSorting();
98 | break;
99 | case Sorting.Selection:
100 | Provider.of(context, listen: false).startSorting();
101 | break;
102 | }
103 | }
104 | }
105 |
106 | Future _initialConfig() async {
107 | final SharedPreferences prefs = await SharedPreferences.getInstance();
108 | final List? list = prefs.getStringList('sortingTypes');
109 | if (list != null) {
110 | _parseList(list);
111 | notifyListeners();
112 | }
113 | }
114 |
115 | Future _saveSelection() async {
116 | await SharedPreferences.getInstance().then((prefs) => prefs.setStringList('sortingTypes', _toList()));
117 | }
118 |
119 | List _toList() => _sortingSet.map((e) => e.index.toString()).toList();
120 |
121 | void _parseList(List list) {
122 | for (final String each in list) {
123 | _sortingSet.add(Sorting.values[int.tryParse(each) ?? 0]);
124 | }
125 | }
126 | }
127 |
--------------------------------------------------------------------------------
/lib/insertion/insertion_sort.dart:
--------------------------------------------------------------------------------
1 | import 'dart:core';
2 |
3 | import 'package:visualizer/base/base_sort.dart';
4 |
5 | class InsertionSort extends BaseSort {
6 | InsertionSort() : super();
7 |
8 | @override
9 | void generateData() {
10 | super.generateData();
11 | sorted = array.length;
12 | notifyListeners();
13 | }
14 |
15 | @override
16 | Future startSorting() async {
17 | if (isSorting) return;
18 |
19 | isSorting = true;
20 | left = 0;
21 | right = 1;
22 | for (int i = 1; i < array.length; i++) {
23 | left = i - 1;
24 | right = i;
25 | notifyListeners();
26 | while (isSorting && left >= 0 && array[right] < array[left]) {
27 | notifyListeners();
28 | final int tmp = array[left];
29 | array[left] = array[right];
30 | array[right] = tmp;
31 | right--;
32 | left--;
33 | notifyListeners();
34 | await sleep();
35 | }
36 | if (!isSorting) {
37 | return;
38 | }
39 | }
40 | sorted = 0;
41 | left = -1;
42 | right = -1;
43 | notifyListeners();
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/lib/insertion/insertion_sort_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:visualizer/base/base_sort_widget.dart';
4 | import 'package:visualizer/insertion/insertion_sort.dart';
5 | import 'package:visualizer/strings.dart';
6 |
7 | class InsertionSortWidget extends BaseSortWidget {
8 | @override
9 | String algorithmName() => INSERTION_SORT;
10 |
11 | @override
12 | String algorithmComplexity() => 'Best O(n) Worst O(n^2) time';
13 |
14 | @override
15 | Widget consumerWidget() => Consumer(
16 | builder: (context, state, _) => Row(
17 | mainAxisAlignment: MainAxisAlignment.center,
18 | crossAxisAlignment: CrossAxisAlignment.end,
19 | children: buildItemsArray(
20 | state.array,
21 | state.left,
22 | state.right,
23 | state.sorted,
24 | Colors.indigo,
25 | ),
26 | ),
27 | );
28 | }
29 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:visualizer/bubble/bubble_sort.dart';
4 | import 'package:visualizer/config/config_holder.dart';
5 | import 'package:visualizer/heap/heap_sort.dart';
6 | import 'package:visualizer/holder/sort_holder.dart';
7 | import 'package:visualizer/insertion/insertion_sort.dart';
8 | import 'package:visualizer/merge/merge_sort.dart';
9 | import 'package:visualizer/selection/selection_sort.dart';
10 | import 'package:visualizer/sorting_page.dart';
11 | import 'package:visualizer/theme/theme_config.dart';
12 |
13 | void main() {
14 | runApp(SortingVisualApp());
15 | }
16 |
17 | class SortingVisualApp extends StatelessWidget {
18 | @override
19 | Widget build(BuildContext context) {
20 | WidgetsApp.debugAllowBannerOverride = false;
21 | return ChangeNotifierProvider(
22 | create: (_) => ThemeConfig(),
23 | child: Consumer(
24 | builder: (context, config, _) => MaterialApp(
25 | title: 'Sorting visualizer',
26 | theme: config.theme,
27 | home: MultiProvider(
28 | providers: [
29 | ChangeNotifierProvider(create: (_) => ConfigHolder()),
30 | ChangeNotifierProvider(create: (_) => SortHolder()),
31 | ChangeNotifierProvider(create: (_) => MergeSort()),
32 | ChangeNotifierProvider(create: (_) => HeapSort()),
33 | ChangeNotifierProvider(create: (_) => SelectionSort()),
34 | ChangeNotifierProvider(create: (_) => BubbleSort()),
35 | ChangeNotifierProvider(create: (_) => InsertionSort()),
36 | ],
37 | child: const ListPage(title: 'Sorting visualizer'),
38 | ),
39 | ),
40 | ),
41 | );
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/lib/merge/merge_sort.dart:
--------------------------------------------------------------------------------
1 | import 'dart:core';
2 |
3 | import 'package:visualizer/base/base_sort.dart';
4 |
5 | class MergeSort extends BaseSort {
6 | MergeSort() : super();
7 |
8 | @override
9 | void generateData() {
10 | super.generateData();
11 | sorted = array.length;
12 | notifyListeners();
13 | }
14 |
15 | @override
16 | Future startSorting() async {
17 | if (isSorting) return;
18 |
19 | isSorting = true;
20 | final List copy = List.from(array);
21 | await _mergeSort(array, 0, array.length - 1, copy);
22 | if (!isSorting) return;
23 | sorted = 0;
24 | left = -1;
25 | right = -1;
26 | notifyListeners();
27 | }
28 |
29 | Future _mergeSort(List main, int start, int end, List copy) async {
30 | if (!isSorting) return;
31 | if (start == end) return;
32 | final int mid = (start + end) ~/ 2;
33 | await _mergeSort(copy, start, mid, main);
34 | await _mergeSort(copy, mid + 1, end, main);
35 | await _merge(main, start, mid, end, copy);
36 | }
37 |
38 | Future _merge(List main, int start, int mid, int end, List copy) async {
39 | if (!isSorting) return;
40 | left = start;
41 | right = mid + 1;
42 | int counter = start;
43 | notifyListeners();
44 | while (left <= mid && right <= end) {
45 | if (!isSorting) return;
46 | if (copy[left] < copy[right]) {
47 | main[counter++] = copy[left++];
48 | } else {
49 | main[counter++] = copy[right++];
50 | }
51 | notifyListeners();
52 | await sleep();
53 | }
54 | while (left <= mid) {
55 | if (!isSorting) return;
56 | main[counter++] = copy[left++];
57 | notifyListeners();
58 | await sleep();
59 | }
60 | while (right <= end) {
61 | if (!isSorting) return;
62 | main[counter++] = copy[right++];
63 | notifyListeners();
64 | await sleep();
65 | }
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/lib/merge/merge_sort_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:visualizer/base/base_sort_widget.dart';
4 | import 'package:visualizer/merge/merge_sort.dart';
5 | import 'package:visualizer/strings.dart';
6 |
7 | class MergeSortWidget extends BaseSortWidget {
8 | @override
9 | String algorithmName() => MERGE_SORT;
10 |
11 | @override
12 | String algorithmComplexity() => 'Time: O(n*log(n)) Space: O(n)';
13 |
14 | @override
15 | Widget consumerWidget() => Consumer(
16 | builder: (context, state, _) => Row(
17 | mainAxisAlignment: MainAxisAlignment.center,
18 | crossAxisAlignment: CrossAxisAlignment.end,
19 | children: buildItemsArray(
20 | state.array,
21 | state.left,
22 | state.right,
23 | state.sorted,
24 | Colors.pinkAccent,
25 | ),
26 | ),
27 | );
28 | }
29 |
--------------------------------------------------------------------------------
/lib/options_drawer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:visualizer/config/config_holder.dart';
4 | import 'package:visualizer/holder/sort_holder.dart';
5 | import 'package:visualizer/strings.dart';
6 | import 'package:visualizer/theme/theme_config.dart';
7 |
8 | class OptionsDrawer extends StatelessWidget {
9 | @override
10 | Widget build(BuildContext context) {
11 | final TextStyle textStyle = Theme.of(context).textTheme.bodyLarge!;
12 | return Drawer(
13 | child: Column(
14 | children: [
15 | Expanded(
16 | child: Consumer(
17 | builder: (context, types, _) => ListView(
18 | padding: EdgeInsets.zero,
19 | children: [
20 | DrawerHeader(
21 | child: Text(
22 | DRAWER_TITLE,
23 | style: textStyle.copyWith(fontSize: 18.0),
24 | ),
25 | decoration: BoxDecoration(
26 | color: Theme.of(context).colorScheme.secondary,
27 | ),
28 | ),
29 | CheckboxListTile(
30 | title: const Text(MERGE_SORT),
31 | secondary: Icon(Icons.fast_forward, color: textStyle.color),
32 | value: types.contains(Sorting.Merge),
33 | onChanged: (_) => types.switchSorting(Sorting.Merge),
34 | ),
35 | CheckboxListTile(
36 | title: const Text(HEAP_SORT),
37 | secondary: Icon(Icons.fast_forward, color: textStyle.color),
38 | value: types.contains(Sorting.Heap),
39 | onChanged: (_) => types.switchSorting(Sorting.Heap),
40 | ),
41 | CheckboxListTile(
42 | title: const Text(BUBBLE_SORT),
43 | secondary: Icon(Icons.play_arrow, color: textStyle.color),
44 | value: types.contains(Sorting.Bubble),
45 | onChanged: (_) => types.switchSorting(Sorting.Bubble),
46 | ),
47 | CheckboxListTile(
48 | title: const Text(INSERTION_SORT),
49 | secondary: Icon(Icons.play_arrow, color: textStyle.color),
50 | value: types.contains(Sorting.Insertion),
51 | onChanged: (_) => types.switchSorting(Sorting.Insertion),
52 | ),
53 | CheckboxListTile(
54 | title: const Text(SELECTION_SORT),
55 | secondary: Icon(Icons.play_arrow, color: textStyle.color),
56 | value: types.contains(Sorting.Selection),
57 | onChanged: (_) => types.switchSorting(Sorting.Selection),
58 | ),
59 | ],
60 | ),
61 | ),
62 | ),
63 | const Divider(
64 | height: 2.0,
65 | ),
66 | Consumer(
67 | builder: (context, config, _) => ListTile(
68 | title:
69 | Text(config.showNumbers ? 'Numbers shown' : 'Numbers hidden'),
70 | trailing: Switch(
71 | value: config.showNumbers,
72 | onChanged: (_) =>
73 | Provider.of(context, listen: false)
74 | .switchNumberDisplaying(),
75 | ),
76 | onTap: Provider.of(context, listen: false)
77 | .switchNumberDisplaying,
78 | ),
79 | ),
80 | ListTile(
81 | title: const Text('Change theme'),
82 | leading: Icon(Icons.brightness_6, color: textStyle.color),
83 | onTap: Provider.of(context, listen: false).changeTheme,
84 | ),
85 | ],
86 | ),
87 | );
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/lib/selection/selection_sort.dart:
--------------------------------------------------------------------------------
1 | import 'dart:core';
2 |
3 | import 'package:visualizer/base/base_sort.dart';
4 |
5 | class SelectionSort extends BaseSort {
6 | SelectionSort() : super();
7 |
8 | // next smallest value in front of sorted array
9 | int next = -1;
10 |
11 | @override
12 | void generateData() {
13 | super.generateData();
14 | next = -1;
15 | notifyListeners();
16 | }
17 |
18 | @override
19 | Future startSorting() async {
20 | if (isSorting) return;
21 |
22 | isSorting = true;
23 | left = 0;
24 | right = 0;
25 |
26 | for (int i = 0; i < array.length - 1; i++) {
27 | left = i;
28 | right = i;
29 | for (next = i + 1; next < array.length; next++) {
30 | if (!isSorting) {
31 | return;
32 | }
33 | if (array[next] < array[right]) {
34 | right = next;
35 | }
36 | notifyListeners();
37 | await sleep();
38 | }
39 | if (left != right) {
40 | final int tmp = array[left];
41 | array[left] = array[right];
42 | array[right] = tmp;
43 | }
44 | sorted = left;
45 | notifyListeners();
46 | }
47 |
48 | sorted = array.length;
49 | left = -1;
50 | right = -1;
51 | next = -1;
52 | notifyListeners();
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/lib/selection/selection_sort_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:collection/collection.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:provider/provider.dart';
4 | import 'package:visualizer/base/base_sort_widget.dart';
5 | import 'package:visualizer/config/config_holder.dart';
6 | import 'package:visualizer/selection/selection_sort.dart';
7 | import 'package:visualizer/strings.dart';
8 | import 'package:visualizer/theme/theme_config.dart';
9 |
10 | class SelectionSortWidget extends BaseSortWidget {
11 | List _buildItemsArray(
12 | List array,
13 | int left,
14 | int right,
15 | int next,
16 | int sorted,
17 | ) =>
18 | array
19 | .mapIndexed(
20 | (idx, value) => Expanded(
21 | flex: idx == left || idx == right || idx == next ? 2 : 1,
22 | child: Consumer(
23 | builder: (context, config, _) => config.showNumbers
24 | ? Column(
25 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
26 | crossAxisAlignment: CrossAxisAlignment.center,
27 | children: [
28 | valueText(idx, value, left, right),
29 | itemWidget(idx, value, left, right, next, sorted)
30 | ],
31 | )
32 | : itemWidget(idx, value, left, right, next, sorted),
33 | ),
34 | ),
35 | )
36 | .toList();
37 |
38 | Widget itemWidget(
39 | int idx,
40 | int value,
41 | int left,
42 | int right,
43 | int next,
44 | int sorted,
45 | ) =>
46 | Consumer(
47 | builder: (context, config, _) => Container(
48 | height: value.toDouble(),
49 | margin: const EdgeInsets.all(1.3),
50 | color: idx == left
51 | ? Colors.yellow
52 | : (idx == right
53 | ? Colors.red
54 | : (idx == next
55 | ? Colors.orange
56 | : (idx <= sorted
57 | ? Colors.blueGrey
58 | : config.theme.colorScheme.secondary))),
59 | ),
60 | );
61 |
62 | @override
63 | String algorithmName() => SELECTION_SORT;
64 |
65 | @override
66 | String algorithmComplexity() => 'Best O(n^2) Worst O(n^2) time';
67 |
68 | @override
69 | Widget consumerWidget() => Consumer(
70 | builder: (context, state, _) => Row(
71 | mainAxisAlignment: MainAxisAlignment.center,
72 | crossAxisAlignment: CrossAxisAlignment.end,
73 | children: _buildItemsArray(
74 | state.array,
75 | state.left,
76 | state.right,
77 | state.next,
78 | state.sorted,
79 | ),
80 | ),
81 | );
82 | }
83 |
--------------------------------------------------------------------------------
/lib/sorting_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:visualizer/holder/sort_holder.dart';
4 | import 'package:visualizer/options_drawer.dart';
5 | import 'package:visualizer/strings.dart';
6 |
7 | class ListPage extends StatefulWidget {
8 | const ListPage({super.key, required this.title});
9 |
10 | final String title;
11 |
12 | @override
13 | _ListPageState createState() => _ListPageState();
14 | }
15 |
16 | class _ListPageState extends State {
17 | @override
18 | Widget build(BuildContext context) => Scaffold(
19 | appBar: AppBar(
20 | title: Text(widget.title),
21 | actions: [
22 | IconButton(
23 | icon: const Icon(Icons.sort),
24 | onPressed: () => Provider.of(context, listen: false)
25 | .startSorting(context),
26 | tooltip: 'Sort',
27 | ),
28 | IconButton(
29 | icon: const Icon(Icons.shuffle),
30 | onPressed: () => Provider.of(context, listen: false)
31 | .shuffleData(context),
32 | tooltip: 'Shuffle',
33 | )
34 | ],
35 | ),
36 | drawer: OptionsDrawer(),
37 | body: Consumer(
38 | builder: (context, types, _) {
39 | final List widgets = types.generateWidgets(context);
40 | return widgets.isEmpty
41 | ? Center(
42 | child: Text(
43 | '$DRAWER_TITLE\n\n$EMPTY_MESSAGE',
44 | textAlign: TextAlign.center,
45 | style: Theme.of(context)
46 | .textTheme
47 | .bodyLarge!
48 | .copyWith(fontSize: 18.0),
49 | ),
50 | )
51 | : ListView(
52 | padding: const EdgeInsets.all(8),
53 | children: widgets,
54 | );
55 | },
56 | ),
57 | );
58 | }
59 |
--------------------------------------------------------------------------------
/lib/strings.dart:
--------------------------------------------------------------------------------
1 | const String MERGE_SORT = 'Merge sort';
2 | const String HEAP_SORT = 'Heap sort';
3 | const String BUBBLE_SORT = 'Bubble sort';
4 | const String INSERTION_SORT = 'Insertion sort';
5 | const String SELECTION_SORT = 'Selection sort';
6 | const String APP_TITLE = 'Sorting visualizer';
7 | const String DRAWER_TITLE = 'Sorting Algorithms\nVisualization';
8 | const String EMPTY_MESSAGE = 'Select widgets in drawer menu';
9 |
--------------------------------------------------------------------------------
/lib/theme/theme_config.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/widgets.dart';
3 | import 'package:shared_preferences/shared_preferences.dart';
4 |
5 | class ThemeConfig with ChangeNotifier {
6 | ThemeConfig() {
7 | _initialConfig();
8 | }
9 |
10 | late ThemeData theme;
11 |
12 | static ThemeData get light => ThemeData.light().copyWith(
13 | colorScheme: ColorScheme.fromSeed(seedColor: Colors.red),
14 | brightness: Brightness.light,
15 | );
16 |
17 | static ThemeData get dark => ThemeData.dark().copyWith(
18 | colorScheme: ColorScheme.fromSeed(seedColor: Colors.cyan),
19 | brightness: Brightness.dark,
20 | );
21 |
22 | Future changeTheme() async {
23 | theme = theme == light ? dark : light;
24 | await _saveThemeChanges();
25 | notifyListeners();
26 | }
27 |
28 | Future _initialConfig() async {
29 | final SharedPreferences prefs = await SharedPreferences.getInstance();
30 | final bool isDark = prefs.getBool('isDark') ?? false;
31 | theme = isDark ? dark : light;
32 | notifyListeners();
33 | }
34 |
35 | Future _saveThemeChanges() async {
36 | await SharedPreferences.getInstance()
37 | .then((prefs) => prefs.setBool('isDark', theme == dark));
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/xcuserdata/
7 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import shared_preferences_foundation
9 |
10 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
11 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
12 | }
13 |
--------------------------------------------------------------------------------
/macos/Podfile:
--------------------------------------------------------------------------------
1 | platform :osx, '10.11'
2 |
3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5 |
6 | project 'Runner', {
7 | 'Debug' => :debug,
8 | 'Profile' => :release,
9 | 'Release' => :release,
10 | }
11 |
12 | def parse_KV_file(file, separator='=')
13 | file_abs_path = File.expand_path(file)
14 | if !File.exists? file_abs_path
15 | return [];
16 | end
17 | pods_ary = []
18 | skip_line_start_symbols = ["#", "/"]
19 | File.foreach(file_abs_path) { |line|
20 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
21 | plugin = line.split(pattern=separator)
22 | if plugin.length == 2
23 | podname = plugin[0].strip()
24 | path = plugin[1].strip()
25 | podpath = File.expand_path("#{path}", file_abs_path)
26 | pods_ary.push({:name => podname, :path => podpath});
27 | else
28 | puts "Invalid plugin specification: #{line}"
29 | end
30 | }
31 | return pods_ary
32 | end
33 |
34 | def pubspec_supports_macos(file)
35 | file_abs_path = File.expand_path(file)
36 | if !File.exists? file_abs_path
37 | return false;
38 | end
39 | File.foreach(file_abs_path) { |line|
40 | return true if line =~ /^\s*macos:/
41 | }
42 | return false
43 | end
44 |
45 | target 'Runner' do
46 | use_frameworks!
47 | use_modular_headers!
48 |
49 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
50 | # referring to absolute paths on developers' machines.
51 | ephemeral_dir = File.join('Flutter', 'ephemeral')
52 | symlink_dir = File.join(ephemeral_dir, '.symlinks')
53 | symlink_plugins_dir = File.join(symlink_dir, 'plugins')
54 | system("rm -rf #{symlink_dir}")
55 | system("mkdir -p #{symlink_plugins_dir}")
56 |
57 | # Flutter Pods
58 | generated_xcconfig = parse_KV_file(File.join(ephemeral_dir, 'Flutter-Generated.xcconfig'))
59 | if generated_xcconfig.empty?
60 | puts "Flutter-Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
61 | end
62 | generated_xcconfig.map { |p|
63 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
64 | symlink = File.join(symlink_dir, 'flutter')
65 | File.symlink(File.dirname(p[:path]), symlink)
66 | pod 'FlutterMacOS', :path => File.join(symlink, File.basename(p[:path]))
67 | end
68 | }
69 |
70 | # Plugin Pods
71 | plugin_pods = parse_KV_file('../.flutter-plugins')
72 | plugin_pods.map { |p|
73 | symlink = File.join(symlink_plugins_dir, p[:name])
74 | File.symlink(p[:path], symlink)
75 | if pubspec_supports_macos(File.join(symlink, 'pubspec.yaml'))
76 | pod p[:name], :path => File.join(symlink, 'macos')
77 | end
78 | }
79 | end
80 |
81 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
82 | install! 'cocoapods', :disable_input_output_paths => true
83 |
--------------------------------------------------------------------------------
/macos/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - FlutterMacOS (1.0.0)
3 | - shared_preferences (0.0.1)
4 | - shared_preferences_macos (0.0.1):
5 | - FlutterMacOS
6 |
7 | DEPENDENCIES:
8 | - FlutterMacOS (from `Flutter/ephemeral/.symlinks/flutter/darwin-x64`)
9 | - shared_preferences (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences/macos`)
10 | - shared_preferences_macos (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`)
11 |
12 | EXTERNAL SOURCES:
13 | FlutterMacOS:
14 | :path: Flutter/ephemeral/.symlinks/flutter/darwin-x64
15 | shared_preferences:
16 | :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences/macos
17 | shared_preferences_macos:
18 | :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos
19 |
20 | SPEC CHECKSUMS:
21 | FlutterMacOS: 15bea8a44d2fa024068daa0140371c020b4b6ff9
22 | shared_preferences: 9fec34d1bd906196a4da48fcf6c3ad521cc00b8d
23 | shared_preferences_macos: 480ce071d0666e37cef23fe6c702293a3d21799e
24 |
25 | PODFILE CHECKSUM: d8ba9b3e9e93c62c74a660b46c6fcb09f03991a7
26 |
27 | COCOAPODS: 1.9.3
28 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 51;
7 | objects = {
8 |
9 | /* Begin PBXAggregateTarget section */
10 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
11 | isa = PBXAggregateTarget;
12 | buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
13 | buildPhases = (
14 | 33CC111E2044C6BF0003C045 /* ShellScript */,
15 | );
16 | dependencies = (
17 | );
18 | name = "Flutter Assemble";
19 | productName = FLX;
20 | };
21 | /* End PBXAggregateTarget section */
22 |
23 | /* Begin PBXBuildFile section */
24 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
25 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
26 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
27 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
28 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
29 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; };
30 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
31 | D5334900CBAA85F06A0BEF6E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 820FF4EA687DCE3B13883CBF /* Pods_Runner.framework */; };
32 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; };
33 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
34 | /* End PBXBuildFile section */
35 |
36 | /* Begin PBXContainerItemProxy section */
37 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
38 | isa = PBXContainerItemProxy;
39 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
40 | proxyType = 1;
41 | remoteGlobalIDString = 33CC111A2044C6BA0003C045;
42 | remoteInfo = FLX;
43 | };
44 | /* End PBXContainerItemProxy section */
45 |
46 | /* Begin PBXCopyFilesBuildPhase section */
47 | 33CC110E2044A8840003C045 /* Bundle Framework */ = {
48 | isa = PBXCopyFilesBuildPhase;
49 | buildActionMask = 2147483647;
50 | dstPath = "";
51 | dstSubfolderSpec = 10;
52 | files = (
53 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */,
54 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */,
55 | );
56 | name = "Bundle Framework";
57 | runOnlyForDeploymentPostprocessing = 0;
58 | };
59 | /* End PBXCopyFilesBuildPhase section */
60 |
61 | /* Begin PBXFileReference section */
62 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
63 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
64 | 33CC10ED2044A3C60003C045 /* visualizer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = visualizer.app; sourceTree = BUILT_PRODUCTS_DIR; };
65 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
66 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
67 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
68 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
69 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
70 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
71 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
72 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
73 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FlutterMacOS.framework; path = Flutter/ephemeral/FlutterMacOS.framework; sourceTree = SOURCE_ROOT; };
74 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
75 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
76 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
77 | 39F34DE6762A983F3A97088F /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
79 | 820FF4EA687DCE3B13883CBF /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
80 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
81 | D73912EF22F37F9E000D13A0 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/ephemeral/App.framework; sourceTree = SOURCE_ROOT; };
82 | E953EB81AD5773E38E6C57C9 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
83 | FCDE0F71C0DC5AA2DB595FA8 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
84 | /* End PBXFileReference section */
85 |
86 | /* Begin PBXFrameworksBuildPhase section */
87 | 33CC10EA2044A3C60003C045 /* Frameworks */ = {
88 | isa = PBXFrameworksBuildPhase;
89 | buildActionMask = 2147483647;
90 | files = (
91 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */,
92 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */,
93 | D5334900CBAA85F06A0BEF6E /* Pods_Runner.framework in Frameworks */,
94 | );
95 | runOnlyForDeploymentPostprocessing = 0;
96 | };
97 | /* End PBXFrameworksBuildPhase section */
98 |
99 | /* Begin PBXGroup section */
100 | 33BA886A226E78AF003329D5 /* Configs */ = {
101 | isa = PBXGroup;
102 | children = (
103 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
104 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
105 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
106 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
107 | );
108 | path = Configs;
109 | sourceTree = "";
110 | };
111 | 33CC10E42044A3C60003C045 = {
112 | isa = PBXGroup;
113 | children = (
114 | 33FAB671232836740065AC1E /* Runner */,
115 | 33CEB47122A05771004F2AC0 /* Flutter */,
116 | 33CC10EE2044A3C60003C045 /* Products */,
117 | D73912EC22F37F3D000D13A0 /* Frameworks */,
118 | A1BB569F448FDC1DC38A96A7 /* Pods */,
119 | );
120 | sourceTree = "";
121 | };
122 | 33CC10EE2044A3C60003C045 /* Products */ = {
123 | isa = PBXGroup;
124 | children = (
125 | 33CC10ED2044A3C60003C045 /* visualizer.app */,
126 | );
127 | name = Products;
128 | sourceTree = "";
129 | };
130 | 33CC11242044D66E0003C045 /* Resources */ = {
131 | isa = PBXGroup;
132 | children = (
133 | 33CC10F22044A3C60003C045 /* Assets.xcassets */,
134 | 33CC10F42044A3C60003C045 /* MainMenu.xib */,
135 | 33CC10F72044A3C60003C045 /* Info.plist */,
136 | );
137 | name = Resources;
138 | path = ..;
139 | sourceTree = "";
140 | };
141 | 33CEB47122A05771004F2AC0 /* Flutter */ = {
142 | isa = PBXGroup;
143 | children = (
144 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
145 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
146 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
147 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
148 | D73912EF22F37F9E000D13A0 /* App.framework */,
149 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */,
150 | );
151 | path = Flutter;
152 | sourceTree = "";
153 | };
154 | 33FAB671232836740065AC1E /* Runner */ = {
155 | isa = PBXGroup;
156 | children = (
157 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
158 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
159 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
160 | 33E51914231749380026EE4D /* Release.entitlements */,
161 | 33CC11242044D66E0003C045 /* Resources */,
162 | 33BA886A226E78AF003329D5 /* Configs */,
163 | );
164 | path = Runner;
165 | sourceTree = "";
166 | };
167 | A1BB569F448FDC1DC38A96A7 /* Pods */ = {
168 | isa = PBXGroup;
169 | children = (
170 | E953EB81AD5773E38E6C57C9 /* Pods-Runner.debug.xcconfig */,
171 | FCDE0F71C0DC5AA2DB595FA8 /* Pods-Runner.release.xcconfig */,
172 | 39F34DE6762A983F3A97088F /* Pods-Runner.profile.xcconfig */,
173 | );
174 | name = Pods;
175 | path = Pods;
176 | sourceTree = "";
177 | };
178 | D73912EC22F37F3D000D13A0 /* Frameworks */ = {
179 | isa = PBXGroup;
180 | children = (
181 | 820FF4EA687DCE3B13883CBF /* Pods_Runner.framework */,
182 | );
183 | name = Frameworks;
184 | sourceTree = "";
185 | };
186 | /* End PBXGroup section */
187 |
188 | /* Begin PBXNativeTarget section */
189 | 33CC10EC2044A3C60003C045 /* Runner */ = {
190 | isa = PBXNativeTarget;
191 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
192 | buildPhases = (
193 | A02482EEB5F18813BED11B70 /* [CP] Check Pods Manifest.lock */,
194 | 33CC10E92044A3C60003C045 /* Sources */,
195 | 33CC10EA2044A3C60003C045 /* Frameworks */,
196 | 33CC10EB2044A3C60003C045 /* Resources */,
197 | 33CC110E2044A8840003C045 /* Bundle Framework */,
198 | 3399D490228B24CF009A79C7 /* ShellScript */,
199 | 4574D9005612E9E177B6B5C7 /* [CP] Embed Pods Frameworks */,
200 | );
201 | buildRules = (
202 | );
203 | dependencies = (
204 | 33CC11202044C79F0003C045 /* PBXTargetDependency */,
205 | );
206 | name = Runner;
207 | productName = Runner;
208 | productReference = 33CC10ED2044A3C60003C045 /* visualizer.app */;
209 | productType = "com.apple.product-type.application";
210 | };
211 | /* End PBXNativeTarget section */
212 |
213 | /* Begin PBXProject section */
214 | 33CC10E52044A3C60003C045 /* Project object */ = {
215 | isa = PBXProject;
216 | attributes = {
217 | LastSwiftUpdateCheck = 0920;
218 | LastUpgradeCheck = 0930;
219 | ORGANIZATIONNAME = "The Flutter Authors";
220 | TargetAttributes = {
221 | 33CC10EC2044A3C60003C045 = {
222 | CreatedOnToolsVersion = 9.2;
223 | LastSwiftMigration = 1100;
224 | ProvisioningStyle = Automatic;
225 | SystemCapabilities = {
226 | com.apple.Sandbox = {
227 | enabled = 1;
228 | };
229 | };
230 | };
231 | 33CC111A2044C6BA0003C045 = {
232 | CreatedOnToolsVersion = 9.2;
233 | ProvisioningStyle = Manual;
234 | };
235 | };
236 | };
237 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
238 | compatibilityVersion = "Xcode 8.0";
239 | developmentRegion = en;
240 | hasScannedForEncodings = 0;
241 | knownRegions = (
242 | en,
243 | Base,
244 | );
245 | mainGroup = 33CC10E42044A3C60003C045;
246 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
247 | projectDirPath = "";
248 | projectRoot = "";
249 | targets = (
250 | 33CC10EC2044A3C60003C045 /* Runner */,
251 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
252 | );
253 | };
254 | /* End PBXProject section */
255 |
256 | /* Begin PBXResourcesBuildPhase section */
257 | 33CC10EB2044A3C60003C045 /* Resources */ = {
258 | isa = PBXResourcesBuildPhase;
259 | buildActionMask = 2147483647;
260 | files = (
261 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
262 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
263 | );
264 | runOnlyForDeploymentPostprocessing = 0;
265 | };
266 | /* End PBXResourcesBuildPhase section */
267 |
268 | /* Begin PBXShellScriptBuildPhase section */
269 | 3399D490228B24CF009A79C7 /* ShellScript */ = {
270 | isa = PBXShellScriptBuildPhase;
271 | buildActionMask = 2147483647;
272 | files = (
273 | );
274 | inputFileListPaths = (
275 | );
276 | inputPaths = (
277 | );
278 | outputFileListPaths = (
279 | );
280 | outputPaths = (
281 | );
282 | runOnlyForDeploymentPostprocessing = 0;
283 | shellPath = /bin/sh;
284 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename\n";
285 | };
286 | 33CC111E2044C6BF0003C045 /* ShellScript */ = {
287 | isa = PBXShellScriptBuildPhase;
288 | buildActionMask = 2147483647;
289 | files = (
290 | );
291 | inputFileListPaths = (
292 | Flutter/ephemeral/FlutterInputs.xcfilelist,
293 | );
294 | inputPaths = (
295 | Flutter/ephemeral/tripwire,
296 | );
297 | outputFileListPaths = (
298 | Flutter/ephemeral/FlutterOutputs.xcfilelist,
299 | );
300 | outputPaths = (
301 | );
302 | runOnlyForDeploymentPostprocessing = 0;
303 | shellPath = /bin/sh;
304 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
305 | };
306 | 4574D9005612E9E177B6B5C7 /* [CP] Embed Pods Frameworks */ = {
307 | isa = PBXShellScriptBuildPhase;
308 | buildActionMask = 2147483647;
309 | files = (
310 | );
311 | inputFileListPaths = (
312 | );
313 | name = "[CP] Embed Pods Frameworks";
314 | outputFileListPaths = (
315 | );
316 | runOnlyForDeploymentPostprocessing = 0;
317 | shellPath = /bin/sh;
318 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
319 | showEnvVarsInLog = 0;
320 | };
321 | A02482EEB5F18813BED11B70 /* [CP] Check Pods Manifest.lock */ = {
322 | isa = PBXShellScriptBuildPhase;
323 | buildActionMask = 2147483647;
324 | files = (
325 | );
326 | inputFileListPaths = (
327 | );
328 | inputPaths = (
329 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
330 | "${PODS_ROOT}/Manifest.lock",
331 | );
332 | name = "[CP] Check Pods Manifest.lock";
333 | outputFileListPaths = (
334 | );
335 | outputPaths = (
336 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
337 | );
338 | runOnlyForDeploymentPostprocessing = 0;
339 | shellPath = /bin/sh;
340 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
341 | showEnvVarsInLog = 0;
342 | };
343 | /* End PBXShellScriptBuildPhase section */
344 |
345 | /* Begin PBXSourcesBuildPhase section */
346 | 33CC10E92044A3C60003C045 /* Sources */ = {
347 | isa = PBXSourcesBuildPhase;
348 | buildActionMask = 2147483647;
349 | files = (
350 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
351 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
352 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
353 | );
354 | runOnlyForDeploymentPostprocessing = 0;
355 | };
356 | /* End PBXSourcesBuildPhase section */
357 |
358 | /* Begin PBXTargetDependency section */
359 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
360 | isa = PBXTargetDependency;
361 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
362 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
363 | };
364 | /* End PBXTargetDependency section */
365 |
366 | /* Begin PBXVariantGroup section */
367 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
368 | isa = PBXVariantGroup;
369 | children = (
370 | 33CC10F52044A3C60003C045 /* Base */,
371 | );
372 | name = MainMenu.xib;
373 | path = Runner;
374 | sourceTree = "";
375 | };
376 | /* End PBXVariantGroup section */
377 |
378 | /* Begin XCBuildConfiguration section */
379 | 338D0CE9231458BD00FA5F75 /* Profile */ = {
380 | isa = XCBuildConfiguration;
381 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
382 | buildSettings = {
383 | ALWAYS_SEARCH_USER_PATHS = NO;
384 | CLANG_ANALYZER_NONNULL = YES;
385 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
387 | CLANG_CXX_LIBRARY = "libc++";
388 | CLANG_ENABLE_MODULES = YES;
389 | CLANG_ENABLE_OBJC_ARC = YES;
390 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
391 | CLANG_WARN_BOOL_CONVERSION = YES;
392 | CLANG_WARN_CONSTANT_CONVERSION = YES;
393 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
394 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
395 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
396 | CLANG_WARN_EMPTY_BODY = YES;
397 | CLANG_WARN_ENUM_CONVERSION = YES;
398 | CLANG_WARN_INFINITE_RECURSION = YES;
399 | CLANG_WARN_INT_CONVERSION = YES;
400 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
401 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
402 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
403 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
404 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
405 | CODE_SIGN_IDENTITY = "-";
406 | COPY_PHASE_STRIP = NO;
407 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
408 | ENABLE_NS_ASSERTIONS = NO;
409 | ENABLE_STRICT_OBJC_MSGSEND = YES;
410 | GCC_C_LANGUAGE_STANDARD = gnu11;
411 | GCC_NO_COMMON_BLOCKS = YES;
412 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
413 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
415 | GCC_WARN_UNUSED_FUNCTION = YES;
416 | GCC_WARN_UNUSED_VARIABLE = YES;
417 | MACOSX_DEPLOYMENT_TARGET = 10.11;
418 | MTL_ENABLE_DEBUG_INFO = NO;
419 | SDKROOT = macosx;
420 | SWIFT_COMPILATION_MODE = wholemodule;
421 | SWIFT_OPTIMIZATION_LEVEL = "-O";
422 | };
423 | name = Profile;
424 | };
425 | 338D0CEA231458BD00FA5F75 /* Profile */ = {
426 | isa = XCBuildConfiguration;
427 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
428 | buildSettings = {
429 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
430 | CLANG_ENABLE_MODULES = YES;
431 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
432 | CODE_SIGN_STYLE = Automatic;
433 | COMBINE_HIDPI_IMAGES = YES;
434 | FRAMEWORK_SEARCH_PATHS = (
435 | "$(inherited)",
436 | "$(PROJECT_DIR)/Flutter/ephemeral",
437 | );
438 | INFOPLIST_FILE = Runner/Info.plist;
439 | LD_RUNPATH_SEARCH_PATHS = (
440 | "$(inherited)",
441 | "@executable_path/../Frameworks",
442 | );
443 | PROVISIONING_PROFILE_SPECIFIER = "";
444 | SWIFT_VERSION = 5.0;
445 | };
446 | name = Profile;
447 | };
448 | 338D0CEB231458BD00FA5F75 /* Profile */ = {
449 | isa = XCBuildConfiguration;
450 | buildSettings = {
451 | CODE_SIGN_STYLE = Manual;
452 | PRODUCT_NAME = "$(TARGET_NAME)";
453 | };
454 | name = Profile;
455 | };
456 | 33CC10F92044A3C60003C045 /* Debug */ = {
457 | isa = XCBuildConfiguration;
458 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
459 | buildSettings = {
460 | ALWAYS_SEARCH_USER_PATHS = NO;
461 | CLANG_ANALYZER_NONNULL = YES;
462 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
463 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
464 | CLANG_CXX_LIBRARY = "libc++";
465 | CLANG_ENABLE_MODULES = YES;
466 | CLANG_ENABLE_OBJC_ARC = YES;
467 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
468 | CLANG_WARN_BOOL_CONVERSION = YES;
469 | CLANG_WARN_CONSTANT_CONVERSION = YES;
470 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
471 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
472 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
473 | CLANG_WARN_EMPTY_BODY = YES;
474 | CLANG_WARN_ENUM_CONVERSION = YES;
475 | CLANG_WARN_INFINITE_RECURSION = YES;
476 | CLANG_WARN_INT_CONVERSION = YES;
477 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
478 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
479 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
480 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
481 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
482 | CODE_SIGN_IDENTITY = "-";
483 | COPY_PHASE_STRIP = NO;
484 | DEBUG_INFORMATION_FORMAT = dwarf;
485 | ENABLE_STRICT_OBJC_MSGSEND = YES;
486 | ENABLE_TESTABILITY = YES;
487 | GCC_C_LANGUAGE_STANDARD = gnu11;
488 | GCC_DYNAMIC_NO_PIC = NO;
489 | GCC_NO_COMMON_BLOCKS = YES;
490 | GCC_OPTIMIZATION_LEVEL = 0;
491 | GCC_PREPROCESSOR_DEFINITIONS = (
492 | "DEBUG=1",
493 | "$(inherited)",
494 | );
495 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
496 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
497 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
498 | GCC_WARN_UNUSED_FUNCTION = YES;
499 | GCC_WARN_UNUSED_VARIABLE = YES;
500 | MACOSX_DEPLOYMENT_TARGET = 10.11;
501 | MTL_ENABLE_DEBUG_INFO = YES;
502 | ONLY_ACTIVE_ARCH = YES;
503 | SDKROOT = macosx;
504 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
505 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
506 | };
507 | name = Debug;
508 | };
509 | 33CC10FA2044A3C60003C045 /* Release */ = {
510 | isa = XCBuildConfiguration;
511 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
512 | buildSettings = {
513 | ALWAYS_SEARCH_USER_PATHS = NO;
514 | CLANG_ANALYZER_NONNULL = YES;
515 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
516 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
517 | CLANG_CXX_LIBRARY = "libc++";
518 | CLANG_ENABLE_MODULES = YES;
519 | CLANG_ENABLE_OBJC_ARC = YES;
520 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
521 | CLANG_WARN_BOOL_CONVERSION = YES;
522 | CLANG_WARN_CONSTANT_CONVERSION = YES;
523 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
524 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
525 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
526 | CLANG_WARN_EMPTY_BODY = YES;
527 | CLANG_WARN_ENUM_CONVERSION = YES;
528 | CLANG_WARN_INFINITE_RECURSION = YES;
529 | CLANG_WARN_INT_CONVERSION = YES;
530 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
531 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
532 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
533 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
534 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
535 | CODE_SIGN_IDENTITY = "-";
536 | COPY_PHASE_STRIP = NO;
537 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
538 | ENABLE_NS_ASSERTIONS = NO;
539 | ENABLE_STRICT_OBJC_MSGSEND = YES;
540 | GCC_C_LANGUAGE_STANDARD = gnu11;
541 | GCC_NO_COMMON_BLOCKS = YES;
542 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
543 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
544 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
545 | GCC_WARN_UNUSED_FUNCTION = YES;
546 | GCC_WARN_UNUSED_VARIABLE = YES;
547 | MACOSX_DEPLOYMENT_TARGET = 10.11;
548 | MTL_ENABLE_DEBUG_INFO = NO;
549 | SDKROOT = macosx;
550 | SWIFT_COMPILATION_MODE = wholemodule;
551 | SWIFT_OPTIMIZATION_LEVEL = "-O";
552 | };
553 | name = Release;
554 | };
555 | 33CC10FC2044A3C60003C045 /* Debug */ = {
556 | isa = XCBuildConfiguration;
557 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
558 | buildSettings = {
559 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
560 | CLANG_ENABLE_MODULES = YES;
561 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
562 | CODE_SIGN_STYLE = Automatic;
563 | COMBINE_HIDPI_IMAGES = YES;
564 | FRAMEWORK_SEARCH_PATHS = (
565 | "$(inherited)",
566 | "$(PROJECT_DIR)/Flutter/ephemeral",
567 | );
568 | INFOPLIST_FILE = Runner/Info.plist;
569 | LD_RUNPATH_SEARCH_PATHS = (
570 | "$(inherited)",
571 | "@executable_path/../Frameworks",
572 | );
573 | PROVISIONING_PROFILE_SPECIFIER = "";
574 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
575 | SWIFT_VERSION = 5.0;
576 | };
577 | name = Debug;
578 | };
579 | 33CC10FD2044A3C60003C045 /* Release */ = {
580 | isa = XCBuildConfiguration;
581 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
582 | buildSettings = {
583 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
584 | CLANG_ENABLE_MODULES = YES;
585 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
586 | CODE_SIGN_STYLE = Automatic;
587 | COMBINE_HIDPI_IMAGES = YES;
588 | FRAMEWORK_SEARCH_PATHS = (
589 | "$(inherited)",
590 | "$(PROJECT_DIR)/Flutter/ephemeral",
591 | );
592 | INFOPLIST_FILE = Runner/Info.plist;
593 | LD_RUNPATH_SEARCH_PATHS = (
594 | "$(inherited)",
595 | "@executable_path/../Frameworks",
596 | );
597 | PROVISIONING_PROFILE_SPECIFIER = "";
598 | SWIFT_VERSION = 5.0;
599 | };
600 | name = Release;
601 | };
602 | 33CC111C2044C6BA0003C045 /* Debug */ = {
603 | isa = XCBuildConfiguration;
604 | buildSettings = {
605 | CODE_SIGN_STYLE = Manual;
606 | PRODUCT_NAME = "$(TARGET_NAME)";
607 | };
608 | name = Debug;
609 | };
610 | 33CC111D2044C6BA0003C045 /* Release */ = {
611 | isa = XCBuildConfiguration;
612 | buildSettings = {
613 | CODE_SIGN_STYLE = Automatic;
614 | PRODUCT_NAME = "$(TARGET_NAME)";
615 | };
616 | name = Release;
617 | };
618 | /* End XCBuildConfiguration section */
619 |
620 | /* Begin XCConfigurationList section */
621 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
622 | isa = XCConfigurationList;
623 | buildConfigurations = (
624 | 33CC10F92044A3C60003C045 /* Debug */,
625 | 33CC10FA2044A3C60003C045 /* Release */,
626 | 338D0CE9231458BD00FA5F75 /* Profile */,
627 | );
628 | defaultConfigurationIsVisible = 0;
629 | defaultConfigurationName = Release;
630 | };
631 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
632 | isa = XCConfigurationList;
633 | buildConfigurations = (
634 | 33CC10FC2044A3C60003C045 /* Debug */,
635 | 33CC10FD2044A3C60003C045 /* Release */,
636 | 338D0CEA231458BD00FA5F75 /* Profile */,
637 | );
638 | defaultConfigurationIsVisible = 0;
639 | defaultConfigurationName = Release;
640 | };
641 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
642 | isa = XCConfigurationList;
643 | buildConfigurations = (
644 | 33CC111C2044C6BA0003C045 /* Debug */,
645 | 33CC111D2044C6BA0003C045 /* Release */,
646 | 338D0CEB231458BD00FA5F75 /* Profile */,
647 | );
648 | defaultConfigurationIsVisible = 0;
649 | defaultConfigurationName = Release;
650 | };
651 | /* End XCConfigurationList section */
652 | };
653 | rootObject = 33CC10E52044A3C60003C045 /* Project object */;
654 | }
655 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
53 |
54 |
64 |
66 |
72 |
73 |
74 |
75 |
76 |
77 |
83 |
85 |
91 |
92 |
93 |
94 |
96 |
97 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @NSApplicationMain
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "app_icon_16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "16x16",
11 | "idiom" : "mac",
12 | "filename" : "app_icon_32.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "32x32",
17 | "idiom" : "mac",
18 | "filename" : "app_icon_32.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "32x32",
23 | "idiom" : "mac",
24 | "filename" : "app_icon_64.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "128x128",
29 | "idiom" : "mac",
30 | "filename" : "app_icon_128.png",
31 | "scale" : "1x"
32 | },
33 | {
34 | "size" : "128x128",
35 | "idiom" : "mac",
36 | "filename" : "app_icon_256.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "256x256",
41 | "idiom" : "mac",
42 | "filename" : "app_icon_256.png",
43 | "scale" : "1x"
44 | },
45 | {
46 | "size" : "256x256",
47 | "idiom" : "mac",
48 | "filename" : "app_icon_512.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "512x512",
53 | "idiom" : "mac",
54 | "filename" : "app_icon_512.png",
55 | "scale" : "1x"
56 | },
57 | {
58 | "size" : "512x512",
59 | "idiom" : "mac",
60 | "filename" : "app_icon_1024.png",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/macos/Runner/Base.lproj/MainMenu.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = visualizer
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.raccoon.sorting.visualizer
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2020 com.raccoon.sorting. All rights reserved.
15 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController.init()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "2.11.0"
12 | boolean_selector:
13 | dependency: transitive
14 | description:
15 | name: boolean_selector
16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "2.1.1"
20 | characters:
21 | dependency: transitive
22 | description:
23 | name: characters
24 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "1.3.0"
28 | clock:
29 | dependency: transitive
30 | description:
31 | name: clock
32 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "1.1.1"
36 | collection:
37 | dependency: "direct main"
38 | description:
39 | name: collection
40 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "1.18.0"
44 | cupertino_icons:
45 | dependency: "direct main"
46 | description:
47 | name: cupertino_icons
48 | sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "1.0.6"
52 | fake_async:
53 | dependency: transitive
54 | description:
55 | name: fake_async
56 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "1.3.1"
60 | ffi:
61 | dependency: transitive
62 | description:
63 | name: ffi
64 | sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978
65 | url: "https://pub.dev"
66 | source: hosted
67 | version: "2.0.1"
68 | file:
69 | dependency: transitive
70 | description:
71 | name: file
72 | sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d"
73 | url: "https://pub.dev"
74 | source: hosted
75 | version: "6.1.4"
76 | flutter:
77 | dependency: "direct main"
78 | description: flutter
79 | source: sdk
80 | version: "0.0.0"
81 | flutter_test:
82 | dependency: "direct dev"
83 | description: flutter
84 | source: sdk
85 | version: "0.0.0"
86 | flutter_web_plugins:
87 | dependency: transitive
88 | description: flutter
89 | source: sdk
90 | version: "0.0.0"
91 | matcher:
92 | dependency: transitive
93 | description:
94 | name: matcher
95 | sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
96 | url: "https://pub.dev"
97 | source: hosted
98 | version: "0.12.16"
99 | material_color_utilities:
100 | dependency: transitive
101 | description:
102 | name: material_color_utilities
103 | sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
104 | url: "https://pub.dev"
105 | source: hosted
106 | version: "0.5.0"
107 | meta:
108 | dependency: transitive
109 | description:
110 | name: meta
111 | sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
112 | url: "https://pub.dev"
113 | source: hosted
114 | version: "1.10.0"
115 | nested:
116 | dependency: transitive
117 | description:
118 | name: nested
119 | sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
120 | url: "https://pub.dev"
121 | source: hosted
122 | version: "1.0.0"
123 | path:
124 | dependency: transitive
125 | description:
126 | name: path
127 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
128 | url: "https://pub.dev"
129 | source: hosted
130 | version: "1.8.3"
131 | path_provider_linux:
132 | dependency: transitive
133 | description:
134 | name: path_provider_linux
135 | sha256: "2ae08f2216225427e64ad224a24354221c2c7907e448e6e0e8b57b1eb9f10ad1"
136 | url: "https://pub.dev"
137 | source: hosted
138 | version: "2.1.10"
139 | path_provider_platform_interface:
140 | dependency: transitive
141 | description:
142 | name: path_provider_platform_interface
143 | sha256: "57585299a729335f1298b43245842678cb9f43a6310351b18fb577d6e33165ec"
144 | url: "https://pub.dev"
145 | source: hosted
146 | version: "2.0.6"
147 | path_provider_windows:
148 | dependency: transitive
149 | description:
150 | name: path_provider_windows
151 | sha256: f53720498d5a543f9607db4b0e997c4b5438884de25b0f73098cc2671a51b130
152 | url: "https://pub.dev"
153 | source: hosted
154 | version: "2.1.5"
155 | platform:
156 | dependency: transitive
157 | description:
158 | name: platform
159 | sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
160 | url: "https://pub.dev"
161 | source: hosted
162 | version: "3.1.0"
163 | plugin_platform_interface:
164 | dependency: transitive
165 | description:
166 | name: plugin_platform_interface
167 | sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc"
168 | url: "https://pub.dev"
169 | source: hosted
170 | version: "2.1.4"
171 | process:
172 | dependency: transitive
173 | description:
174 | name: process
175 | sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
176 | url: "https://pub.dev"
177 | source: hosted
178 | version: "4.2.4"
179 | provider:
180 | dependency: "direct main"
181 | description:
182 | name: provider
183 | sha256: "9a96a0a19b594dbc5bf0f1f27d2bc67d5f95957359b461cd9feb44ed6ae75096"
184 | url: "https://pub.dev"
185 | source: hosted
186 | version: "6.1.1"
187 | shared_preferences:
188 | dependency: "direct main"
189 | description:
190 | name: shared_preferences
191 | sha256: "81429e4481e1ccfb51ede496e916348668fd0921627779233bd24cc3ff6abd02"
192 | url: "https://pub.dev"
193 | source: hosted
194 | version: "2.2.2"
195 | shared_preferences_android:
196 | dependency: transitive
197 | description:
198 | name: shared_preferences_android
199 | sha256: "8304d8a1f7d21a429f91dee552792249362b68a331ac5c3c1caf370f658873f6"
200 | url: "https://pub.dev"
201 | source: hosted
202 | version: "2.1.0"
203 | shared_preferences_foundation:
204 | dependency: transitive
205 | description:
206 | name: shared_preferences_foundation
207 | sha256: cf2a42fb20148502022861f71698db12d937c7459345a1bdaa88fc91a91b3603
208 | url: "https://pub.dev"
209 | source: hosted
210 | version: "2.2.0"
211 | shared_preferences_linux:
212 | dependency: transitive
213 | description:
214 | name: shared_preferences_linux
215 | sha256: "9d387433ca65717bbf1be88f4d5bb18f10508917a8fa2fb02e0fd0d7479a9afa"
216 | url: "https://pub.dev"
217 | source: hosted
218 | version: "2.2.0"
219 | shared_preferences_platform_interface:
220 | dependency: transitive
221 | description:
222 | name: shared_preferences_platform_interface
223 | sha256: d4ec5fc9ebb2f2e056c617112aa75dcf92fc2e4faaf2ae999caa297473f75d8a
224 | url: "https://pub.dev"
225 | source: hosted
226 | version: "2.3.1"
227 | shared_preferences_web:
228 | dependency: transitive
229 | description:
230 | name: shared_preferences_web
231 | sha256: "74083203a8eae241e0de4a0d597dbedab3b8fef5563f33cf3c12d7e93c655ca5"
232 | url: "https://pub.dev"
233 | source: hosted
234 | version: "2.1.0"
235 | shared_preferences_windows:
236 | dependency: transitive
237 | description:
238 | name: shared_preferences_windows
239 | sha256: "5e588e2efef56916a3b229c3bfe81e6a525665a454519ca51dbcc4236a274173"
240 | url: "https://pub.dev"
241 | source: hosted
242 | version: "2.2.0"
243 | sky_engine:
244 | dependency: transitive
245 | description: flutter
246 | source: sdk
247 | version: "0.0.99"
248 | source_span:
249 | dependency: transitive
250 | description:
251 | name: source_span
252 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
253 | url: "https://pub.dev"
254 | source: hosted
255 | version: "1.10.0"
256 | stack_trace:
257 | dependency: transitive
258 | description:
259 | name: stack_trace
260 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
261 | url: "https://pub.dev"
262 | source: hosted
263 | version: "1.11.1"
264 | stream_channel:
265 | dependency: transitive
266 | description:
267 | name: stream_channel
268 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
269 | url: "https://pub.dev"
270 | source: hosted
271 | version: "2.1.2"
272 | string_scanner:
273 | dependency: transitive
274 | description:
275 | name: string_scanner
276 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
277 | url: "https://pub.dev"
278 | source: hosted
279 | version: "1.2.0"
280 | term_glyph:
281 | dependency: transitive
282 | description:
283 | name: term_glyph
284 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
285 | url: "https://pub.dev"
286 | source: hosted
287 | version: "1.2.1"
288 | test_api:
289 | dependency: transitive
290 | description:
291 | name: test_api
292 | sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
293 | url: "https://pub.dev"
294 | source: hosted
295 | version: "0.6.1"
296 | vector_math:
297 | dependency: transitive
298 | description:
299 | name: vector_math
300 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
301 | url: "https://pub.dev"
302 | source: hosted
303 | version: "2.1.4"
304 | web:
305 | dependency: transitive
306 | description:
307 | name: web
308 | sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
309 | url: "https://pub.dev"
310 | source: hosted
311 | version: "0.3.0"
312 | win32:
313 | dependency: transitive
314 | description:
315 | name: win32
316 | sha256: c9ebe7ee4ab0c2194e65d3a07d8c54c5d00bb001b76081c4a04cdb8448b59e46
317 | url: "https://pub.dev"
318 | source: hosted
319 | version: "3.1.3"
320 | xdg_directories:
321 | dependency: transitive
322 | description:
323 | name: xdg_directories
324 | sha256: ee1505df1426458f7f60aac270645098d318a8b4766d85fde75f76f2e21807d1
325 | url: "https://pub.dev"
326 | source: hosted
327 | version: "1.0.0"
328 | sdks:
329 | dart: ">=3.2.0-194.0.dev <4.0.0"
330 | flutter: ">=3.7.0"
331 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: visualizer
2 | description: Visual sorting algo representation
3 |
4 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
5 |
6 | version: 1.0.0+1
7 |
8 | environment:
9 | sdk: ">=3.0.0 <4.0.0"
10 |
11 | dependencies:
12 | flutter:
13 | sdk: flutter
14 |
15 | cupertino_icons: ^1.0.6
16 | collection: ^1.18.0
17 | provider: ^6.1.1
18 | shared_preferences: ^2.2.2
19 |
20 | dev_dependencies:
21 | flutter_test:
22 | sdk: flutter
23 |
24 | flutter:
25 | uses-material-design: true
26 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 | import 'package:visualizer/main.dart';
11 |
12 | void main() {
13 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
14 | // Build our app and trigger a frame.
15 | await tester.pumpWidget(SortingVisualApp());
16 |
17 | // Verify that our counter starts at 0.
18 | expect(find.text('0'), findsOneWidget);
19 | expect(find.text('1'), findsNothing);
20 |
21 | // Tap the '+' icon and trigger a frame.
22 | await tester.tap(find.byIcon(Icons.add));
23 | await tester.pump();
24 |
25 | // Verify that our counter has incremented.
26 | expect(find.text('0'), findsNothing);
27 | expect(find.text('1'), findsOneWidget);
28 | });
29 | }
30 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VadymPinchuk/visualizer/e8c19761c4a63b0feb41960617c48b7be40fa3b5/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | visualizer
18 |
19 |
20 |
21 |
24 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "visualizer",
3 | "short_name": "visualizer",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------