├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── assets
└── gifs
│ └── demo.mp4
├── example
├── .fvm
│ └── fvm_config.json
├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
│ ├── .gitignore
│ ├── app
│ │ ├── build.gradle
│ │ └── src
│ │ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ │ ├── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── extrawest
│ │ │ │ │ └── flutter_roll_slot_machine
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── res
│ │ │ │ ├── drawable-v21
│ │ │ │ └── launch_background.xml
│ │ │ │ ├── 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-night
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ └── styles.xml
│ │ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ └── gradle-wrapper.properties
│ └── settings.gradle
├── assets
│ └── images
│ │ ├── 777.svg
│ │ ├── apple.svg
│ │ ├── bar.svg
│ │ ├── cherry.svg
│ │ ├── coin.svg
│ │ ├── crown.svg
│ │ ├── lemon.svg
│ │ └── watermelon.svg
├── ios
│ ├── .gitignore
│ ├── Flutter
│ │ ├── AppFrameworkInfo.plist
│ │ ├── Debug.xcconfig
│ │ └── Release.xcconfig
│ ├── 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
│ ├── main.dart
│ └── theme.dart
├── pubspec.lock
├── pubspec.yaml
├── test
│ └── widget_test.dart
└── web
│ ├── favicon.png
│ ├── icons
│ ├── Icon-192.png
│ └── Icon-512.png
│ ├── index.html
│ └── manifest.json
├── lib
├── roll_item.dart
├── roll_slot.dart
└── roll_slot_controller.dart
├── pubspec.lock
└── pubspec.yaml
/.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 | /example/.fvm/flutter_sdk/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | build/
33 |
34 | # Android related
35 | **/android/**/gradle-wrapper.jar
36 | **/android/.gradle
37 | **/android/captures/
38 | **/android/gradlew
39 | **/android/gradlew.bat
40 | **/android/local.properties
41 | **/android/**/GeneratedPluginRegistrant.java
42 |
43 | # iOS/XCode related
44 | **/ios/**/*.mode1v3
45 | **/ios/**/*.mode2v3
46 | **/ios/**/*.moved-aside
47 | **/ios/**/*.pbxuser
48 | **/ios/**/*.perspectivev3
49 | **/ios/**/*sync/
50 | **/ios/**/.sconsign.dblite
51 | **/ios/**/.tags*
52 | **/ios/**/.vagrant/
53 | **/ios/**/DerivedData/
54 | **/ios/**/Icon?
55 | **/ios/**/Pods/
56 | **/ios/**/.symlinks/
57 | **/ios/**/profile
58 | **/ios/**/xcuserdata
59 | **/ios/.generated/
60 | **/ios/Flutter/App.framework
61 | **/ios/Flutter/Flutter.framework
62 | **/ios/Flutter/Flutter.podspec
63 | **/ios/Flutter/Generated.xcconfig
64 | **/ios/Flutter/app.flx
65 | **/ios/Flutter/app.zip
66 | **/ios/Flutter/flutter_assets/
67 | **/ios/Flutter/flutter_export_environment.sh
68 | **/ios/ServiceDefinitions.json
69 | **/ios/Runner/GeneratedPluginRegistrant.*
70 |
71 | # Exceptions to above rules.
72 | !**/ios/**/default.mode1v3
73 | !**/ios/**/default.mode2v3
74 | !**/ios/**/default.pbxuser
75 | !**/ios/**/default.perspectivev3
76 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
77 |
--------------------------------------------------------------------------------
/.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: fed18fc4331e6b109ff96be87cd209730b514246
8 | channel: master
9 |
10 | project_type: package
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Roll Slot Machine
2 | []()
3 | [](mailto:roman.ovsepian@extrawest.com)
4 | []()
5 | 
6 | 
7 |
8 | ## PROJECT INFO
9 |
10 | - **Roll Slot Machine based on Flutter v3.3.9**
11 | - **Package is properly working on Android, iOS and WEB**
12 |
13 |
14 |
15 | ## Features
16 |
17 | - Unlimited number of slots
18 | - Ability to set probability in advance
19 | - Stop each slot separately manually
20 | - Set automatic stop duration
21 |
22 |
23 | ## Demo
24 |
25 | https://user-images.githubusercontent.com/117409513/216299725-161b3f32-a822-47ff-8549-6b0a4851999b.mp4
26 |
27 |
28 | Created by Roman Ovsepian
29 |
30 | [Extrawest.com](https://www.extrawest.com), 2022
31 |
32 | Heavily inspired by [roll_slot_machine](https://pub.dev/packages/roll_slot_machine)
33 |
34 | ---
35 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | rules:
14 | # these rules are documented on and in the same order as
15 | # the Dart Lint rules page to make maintenance easier
16 | # https://github.com/dart-lang/linter/blob/master/example/all.yaml
17 | - always_declare_return_types
18 | - always_put_control_body_on_new_line
19 | # - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
20 | - always_require_non_null_named_parameters
21 | - annotate_overrides
22 | # - avoid_annotating_with_dynamic # conflicts with always_specify_types
23 | # - avoid_as # required for implicit-casts: true
24 | - avoid_bool_literals_in_conditional_expressions
25 | # - avoid_catches_without_on_clauses # we do this commonly
26 | # - avoid_catching_errors # we do this commonly
27 | - avoid_classes_with_only_static_members
28 | # - avoid_double_and_int_checks # only useful when targeting JS runtime
29 | - avoid_empty_else
30 | - avoid_equals_and_hash_code_on_mutable_classes
31 | - avoid_field_initializers_in_const_classes
32 | - avoid_function_literals_in_foreach_calls
33 | # - avoid_implementing_value_types # not yet tested
34 | - avoid_init_to_null
35 | # - avoid_js_rounded_ints # only useful when targeting JS runtime
36 | - avoid_null_checks_in_equality_operators
37 | # - avoid_positional_boolean_parameters # not yet tested
38 | # - avoid_print # not yet tested
39 | # - avoid_private_typedef_functions # we prefer having typedef (discussion in https://github.com/flutter/flutter/pull/16356)
40 | # - avoid_redundant_argument_values # not yet tested
41 | - avoid_relative_lib_imports
42 | # - avoid_renaming_method_parameters
43 | - avoid_return_types_on_setters
44 | # - avoid_returning_null # there are plenty of valid reasons to return null
45 | # - avoid_returning_null_for_future # not yet tested
46 | - avoid_returning_null_for_void
47 | # - avoid_returning_this # there are plenty of valid reasons to return this
48 | # - avoid_setters_without_getters # not yet tested
49 | # - avoid_shadowing_type_parameters # not yet tested
50 | - avoid_single_cascade_in_expression_statements
51 | - avoid_slow_async_io
52 | - avoid_types_as_parameter_names
53 | # - avoid_types_on_closure_parameters # conflicts with always_specify_types
54 | # - avoid_unnecessary_containers # not yet tested
55 | # - avoid_unused_constructor_parameters
56 | - avoid_void_async
57 | # - avoid_web_libraries_in_flutter # not yet tested
58 | - await_only_futures
59 | - camel_case_extensions
60 | - camel_case_types
61 | - cancel_subscriptions
62 | # - cascade_invocations # not yet tested
63 | # - close_sinks # not reliable enough
64 | # - comment_references # blocked on https://github.com/flutter/flutter/issues/20765
65 | # - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204
66 | - control_flow_in_finally
67 | # - curly_braces_in_flow_control_structures # not yet tested
68 | # - diagnostic_describe_all_properties # not yet tested
69 | - directives_ordering
70 | - empty_catches
71 | - empty_constructor_bodies
72 | - empty_statements
73 | # - file_names # not yet tested
74 | - flutter_style_todos
75 | - hash_and_equals
76 | - implementation_imports
77 | # - invariant_booleans # too many false positives: https://github.com/dart-lang/linter/issues/811
78 | - iterable_contains_unrelated_type
79 | # - join_return_with_assignment # not yet tested
80 | - library_names
81 | - library_prefixes
82 | # - lines_longer_than_80_chars # not yet tested
83 | - list_remove_unrelated_type
84 | # - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/sdk/issues/34181
85 | # - missing_whitespace_between_adjacent_strings # not yet tested
86 | - no_adjacent_strings_in_list
87 | - no_duplicate_case_values
88 | # - no_logic_in_create_state # not yet tested
89 | # - no_runtimeType_toString # not yet tested
90 | # - non_constant_identifier_names
91 | # - null_closures # not yet tested
92 | # - omit_local_variable_types # opposite of always_specify_types
93 | # - one_member_abstracts # too many false positives
94 | # - only_throw_errors # https://github.com/flutter/flutter/issues/5792
95 | # - overridden_fields
96 | - package_api_docs
97 | - package_names
98 | - package_prefixed_library_names
99 | # - parameter_assignments # we do this commonly
100 | - prefer_adjacent_string_concatenation
101 | - prefer_asserts_in_initializer_lists
102 | # - prefer_asserts_with_message # not yet tested
103 | - prefer_collection_literals
104 | - prefer_conditional_assignment
105 | # - prefer_const_constructors
106 | # - prefer_const_constructors_in_immutables
107 | - prefer_const_declarations
108 | # - prefer_const_literals_to_create_immutables
109 | # - prefer_constructors_over_static_methods # not yet tested
110 | - prefer_contains
111 | # - prefer_double_quotes # opposite of prefer_single_quotes
112 | - prefer_equal_for_default_values
113 | # - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
114 | - prefer_final_fields
115 | - prefer_final_in_for_each
116 | - prefer_final_locals
117 | - prefer_for_elements_to_map_fromIterable
118 | - prefer_foreach
119 | # - prefer_function_declarations_over_variables # not yet tested
120 | - prefer_generic_function_type_aliases
121 | - prefer_if_elements_to_conditional_expressions
122 | - prefer_if_null_operators
123 | - prefer_initializing_formals
124 | - prefer_inlined_adds
125 | # - prefer_int_literals # not yet tested
126 | # - prefer_interpolation_to_compose_strings # not yet tested
127 | - prefer_is_empty
128 | - prefer_is_not_empty
129 | - prefer_is_not_operator
130 | - prefer_iterable_whereType
131 | # - prefer_mixin # https://github.com/dart-lang/language/issues/32
132 | # - prefer_null_aware_operators # disable until NNBD, see https://github.com/flutter/flutter/pull/32711#issuecomment-492930932
133 | # - prefer_relative_imports # not yet tested
134 | - prefer_single_quotes
135 | - prefer_spread_collections
136 | - prefer_typing_uninitialized_variables
137 | - prefer_void_to_null
138 | # - provide_deprecation_message # not yet tested
139 | # - public_member_api_docs # enabled on a case-by-case basis; see e.g. packages/analysis_options.yaml
140 | - recursive_getters
141 | - slash_for_doc_comments
142 | # - sort_child_properties_last # not yet tested
143 | # - sort_constructors_first
144 | # - sort_pub_dependencies
145 | - sort_unnamed_constructors_first
146 | - test_types_in_equals
147 | - throw_in_finally
148 | # - type_annotate_public_apis # subset of always_specify_types
149 | - type_init_formals
150 | # - unawaited_futures # too many false positives
151 | # - unnecessary_await_in_return # not yet tested
152 | - unnecessary_brace_in_string_interps
153 | - unnecessary_const
154 | # - unnecessary_final # conflicts with prefer_final_locals
155 | - unnecessary_getters_setters
156 | # - unnecessary_lambdas # has false positives: https://github.com/dart-lang/linter/issues/498
157 | - unnecessary_new
158 | - unnecessary_null_aware_assignments
159 | - unnecessary_null_in_if_null_operators
160 | - unnecessary_overrides
161 | - unnecessary_parenthesis
162 | - unnecessary_statements
163 | - unnecessary_string_interpolations
164 | - unnecessary_this
165 | - unrelated_type_equality_checks
166 | # - unsafe_html # not yet tested
167 | - use_full_hex_values_for_flutter_colors
168 | # - use_function_type_syntax_for_parameters # not yet tested
169 | # - use_key_in_widget_constructors # not yet tested
170 | - use_rethrow_when_possible
171 | # - use_setters_to_change_properties # not yet tested
172 | # - use_string_buffers # has false positives: https://github.com/dart-lang/sdk/issues/34182
173 | # - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review
174 | - valid_regexps
175 | - void_checks
176 |
177 | analyzer:
178 |
179 | exclude:
180 | - build/**
181 | - beacon_monitoring/**
182 | - beacon_monitoring_platform_interface/**
183 | - soundcode/**
184 | - lib/localization/keys.g.dart
185 |
186 | errors:
187 | always_require_non_null_named_parameters: error
188 | annotate_overrides: error
189 | avoid_function_literals_in_foreach_calls: error
190 | avoid_init_to_null: error
191 | avoid_null_checks_in_equality_operators: error
192 | # avoid_renaming_method_parameters: error
193 | avoid_return_types_on_setters: error
194 | avoid_returning_null_for_void: error
195 | avoid_single_cascade_in_expression_statements: error
196 | control_flow_in_finally: error
197 | empty_constructor_bodies: error
198 | empty_statements: error
199 | exhaustive_cases: error
200 | implementation_imports: error
201 | library_names: error
202 | library_prefixes: error
203 | null_closures: error
204 | #overridden_fields: error
205 | package_names: error
206 | prefer_adjacent_string_concatenation: error
207 | prefer_collection_literals: error
208 | prefer_conditional_assignment: error
209 | prefer_contains: error
210 | prefer_equal_for_default_values: error
211 | prefer_final_fields: error
212 | prefer_for_elements_to_map_fromIterable: error
213 | prefer_function_declarations_over_variables: error
214 | prefer_if_null_operators: error
215 | prefer_initializing_formals: error
216 | prefer_inlined_adds: error
217 | prefer_is_not_operator: error
218 | prefer_null_aware_operators: error
219 | prefer_spread_collections: error
220 | prefer_void_to_null: error
221 | recursive_getters: error
222 | slash_for_doc_comments: error
223 | type_init_formals: error
224 | unnecessary_brace_in_string_interps: error
225 | unnecessary_const: error
226 | unnecessary_getters_setters: error
227 | unnecessary_new: error
228 | unnecessary_null_in_if_null_operators: error
229 | unnecessary_string_escapes: error
230 | unnecessary_string_interpolations: error
231 | unnecessary_this: error
232 | use_function_type_syntax_for_parameters: error
233 | use_rethrow_when_possible: error
234 | use_key_in_widget_constructors: ignore
235 |
236 | # Additional information about this file can be found at
237 | # https://dart.dev/guides/language/analysis-options
238 |
--------------------------------------------------------------------------------
/assets/gifs/demo.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/assets/gifs/demo.mp4
--------------------------------------------------------------------------------
/example/.fvm/fvm_config.json:
--------------------------------------------------------------------------------
1 | {
2 | "flutterSdkVersion": "2.0.2"
3 | }
--------------------------------------------------------------------------------
/example/.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 | /.fvm/flutter_sdk/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Web related
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/example/.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: 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
8 | channel: unknown
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/example/README.md:
--------------------------------------------------------------------------------
1 | # Roll Slot Machine example app
2 | []()
3 | [](mailto:roman.ovsepian@extrawest.com)
4 | []()
5 | 
6 | 
7 |
8 | ## PROJECT INFO
9 |
10 | - **Roll Slot Machine example app based on Flutter v3.3.9**
11 | - **Game is properly working on Android, iOS and WEB**
12 |
13 |
14 | ## Features
15 |
16 | - Four slots
17 | - 8 types of prizes
18 | - Automatic and manual stop for each slot
19 |
20 |
21 | Created by Roman Ovsepian
22 |
23 | [Extrawest.com](https://www.extrawest.com), 2022
24 |
25 | ---
26 |
--------------------------------------------------------------------------------
/example/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | rules:
14 | # these rules are documented on and in the same order as
15 | # the Dart Lint rules page to make maintenance easier
16 | # https://github.com/dart-lang/linter/blob/master/example/all.yaml
17 | - always_declare_return_types
18 | - always_put_control_body_on_new_line
19 | # - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
20 | - always_require_non_null_named_parameters
21 | - annotate_overrides
22 | # - avoid_annotating_with_dynamic # conflicts with always_specify_types
23 | # - avoid_as # required for implicit-casts: true
24 | - avoid_bool_literals_in_conditional_expressions
25 | # - avoid_catches_without_on_clauses # we do this commonly
26 | # - avoid_catching_errors # we do this commonly
27 | - avoid_classes_with_only_static_members
28 | # - avoid_double_and_int_checks # only useful when targeting JS runtime
29 | - avoid_empty_else
30 | - avoid_equals_and_hash_code_on_mutable_classes
31 | - avoid_field_initializers_in_const_classes
32 | - avoid_function_literals_in_foreach_calls
33 | # - avoid_implementing_value_types # not yet tested
34 | - avoid_init_to_null
35 | # - avoid_js_rounded_ints # only useful when targeting JS runtime
36 | - avoid_null_checks_in_equality_operators
37 | # - avoid_positional_boolean_parameters # not yet tested
38 | # - avoid_print # not yet tested
39 | # - avoid_private_typedef_functions # we prefer having typedef (discussion in https://github.com/flutter/flutter/pull/16356)
40 | # - avoid_redundant_argument_values # not yet tested
41 | - avoid_relative_lib_imports
42 | # - avoid_renaming_method_parameters
43 | - avoid_return_types_on_setters
44 | # - avoid_returning_null # there are plenty of valid reasons to return null
45 | # - avoid_returning_null_for_future # not yet tested
46 | - avoid_returning_null_for_void
47 | # - avoid_returning_this # there are plenty of valid reasons to return this
48 | # - avoid_setters_without_getters # not yet tested
49 | # - avoid_shadowing_type_parameters # not yet tested
50 | - avoid_single_cascade_in_expression_statements
51 | - avoid_slow_async_io
52 | - avoid_types_as_parameter_names
53 | # - avoid_types_on_closure_parameters # conflicts with always_specify_types
54 | # - avoid_unnecessary_containers # not yet tested
55 | # - avoid_unused_constructor_parameters
56 | - avoid_void_async
57 | # - avoid_web_libraries_in_flutter # not yet tested
58 | - await_only_futures
59 | - camel_case_extensions
60 | - camel_case_types
61 | - cancel_subscriptions
62 | # - cascade_invocations # not yet tested
63 | # - close_sinks # not reliable enough
64 | # - comment_references # blocked on https://github.com/flutter/flutter/issues/20765
65 | # - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204
66 | - control_flow_in_finally
67 | # - curly_braces_in_flow_control_structures # not yet tested
68 | # - diagnostic_describe_all_properties # not yet tested
69 | - directives_ordering
70 | - empty_catches
71 | - empty_constructor_bodies
72 | - empty_statements
73 | # - file_names # not yet tested
74 | - flutter_style_todos
75 | - hash_and_equals
76 | - implementation_imports
77 | # - invariant_booleans # too many false positives: https://github.com/dart-lang/linter/issues/811
78 | - iterable_contains_unrelated_type
79 | # - join_return_with_assignment # not yet tested
80 | - library_names
81 | - library_prefixes
82 | # - lines_longer_than_80_chars # not yet tested
83 | - list_remove_unrelated_type
84 | # - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/sdk/issues/34181
85 | # - missing_whitespace_between_adjacent_strings # not yet tested
86 | - no_adjacent_strings_in_list
87 | - no_duplicate_case_values
88 | # - no_logic_in_create_state # not yet tested
89 | # - no_runtimeType_toString # not yet tested
90 | # - non_constant_identifier_names
91 | # - null_closures # not yet tested
92 | # - omit_local_variable_types # opposite of always_specify_types
93 | # - one_member_abstracts # too many false positives
94 | # - only_throw_errors # https://github.com/flutter/flutter/issues/5792
95 | # - overridden_fields
96 | - package_api_docs
97 | - package_names
98 | - package_prefixed_library_names
99 | # - parameter_assignments # we do this commonly
100 | - prefer_adjacent_string_concatenation
101 | - prefer_asserts_in_initializer_lists
102 | # - prefer_asserts_with_message # not yet tested
103 | - prefer_collection_literals
104 | - prefer_conditional_assignment
105 | # - prefer_const_constructors
106 | # - prefer_const_constructors_in_immutables
107 | - prefer_const_declarations
108 | # - prefer_const_literals_to_create_immutables
109 | # - prefer_constructors_over_static_methods # not yet tested
110 | - prefer_contains
111 | # - prefer_double_quotes # opposite of prefer_single_quotes
112 | - prefer_equal_for_default_values
113 | # - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
114 | - prefer_final_fields
115 | - prefer_final_in_for_each
116 | - prefer_final_locals
117 | - prefer_for_elements_to_map_fromIterable
118 | - prefer_foreach
119 | # - prefer_function_declarations_over_variables # not yet tested
120 | - prefer_generic_function_type_aliases
121 | - prefer_if_elements_to_conditional_expressions
122 | - prefer_if_null_operators
123 | - prefer_initializing_formals
124 | - prefer_inlined_adds
125 | # - prefer_int_literals # not yet tested
126 | # - prefer_interpolation_to_compose_strings # not yet tested
127 | - prefer_is_empty
128 | - prefer_is_not_empty
129 | - prefer_is_not_operator
130 | - prefer_iterable_whereType
131 | # - prefer_mixin # https://github.com/dart-lang/language/issues/32
132 | # - prefer_null_aware_operators # disable until NNBD, see https://github.com/flutter/flutter/pull/32711#issuecomment-492930932
133 | # - prefer_relative_imports # not yet tested
134 | - prefer_single_quotes
135 | - prefer_spread_collections
136 | - prefer_typing_uninitialized_variables
137 | - prefer_void_to_null
138 | # - provide_deprecation_message # not yet tested
139 | # - public_member_api_docs # enabled on a case-by-case basis; see e.g. packages/analysis_options.yaml
140 | - recursive_getters
141 | - slash_for_doc_comments
142 | # - sort_child_properties_last # not yet tested
143 | # - sort_constructors_first
144 | # - sort_pub_dependencies
145 | - sort_unnamed_constructors_first
146 | - test_types_in_equals
147 | - throw_in_finally
148 | # - type_annotate_public_apis # subset of always_specify_types
149 | - type_init_formals
150 | # - unawaited_futures # too many false positives
151 | # - unnecessary_await_in_return # not yet tested
152 | - unnecessary_brace_in_string_interps
153 | - unnecessary_const
154 | # - unnecessary_final # conflicts with prefer_final_locals
155 | - unnecessary_getters_setters
156 | # - unnecessary_lambdas # has false positives: https://github.com/dart-lang/linter/issues/498
157 | - unnecessary_new
158 | - unnecessary_null_aware_assignments
159 | - unnecessary_null_in_if_null_operators
160 | - unnecessary_overrides
161 | - unnecessary_parenthesis
162 | - unnecessary_statements
163 | - unnecessary_string_interpolations
164 | - unnecessary_this
165 | - unrelated_type_equality_checks
166 | # - unsafe_html # not yet tested
167 | - use_full_hex_values_for_flutter_colors
168 | # - use_function_type_syntax_for_parameters # not yet tested
169 | # - use_key_in_widget_constructors # not yet tested
170 | - use_rethrow_when_possible
171 | # - use_setters_to_change_properties # not yet tested
172 | # - use_string_buffers # has false positives: https://github.com/dart-lang/sdk/issues/34182
173 | # - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review
174 | - valid_regexps
175 | - void_checks
176 |
177 | analyzer:
178 |
179 | exclude:
180 | - build/**
181 | - beacon_monitoring/**
182 | - beacon_monitoring_platform_interface/**
183 | - soundcode/**
184 | - lib/localization/keys.g.dart
185 |
186 | errors:
187 | always_require_non_null_named_parameters: error
188 | annotate_overrides: error
189 | avoid_function_literals_in_foreach_calls: error
190 | avoid_init_to_null: error
191 | avoid_null_checks_in_equality_operators: error
192 | # avoid_renaming_method_parameters: error
193 | avoid_return_types_on_setters: error
194 | avoid_returning_null_for_void: error
195 | avoid_single_cascade_in_expression_statements: error
196 | control_flow_in_finally: error
197 | empty_constructor_bodies: error
198 | empty_statements: error
199 | exhaustive_cases: error
200 | implementation_imports: error
201 | library_names: error
202 | library_prefixes: error
203 | null_closures: error
204 | #overridden_fields: error
205 | package_names: error
206 | prefer_adjacent_string_concatenation: error
207 | prefer_collection_literals: error
208 | prefer_conditional_assignment: error
209 | prefer_contains: error
210 | prefer_equal_for_default_values: error
211 | prefer_final_fields: error
212 | prefer_for_elements_to_map_fromIterable: error
213 | prefer_function_declarations_over_variables: error
214 | prefer_if_null_operators: error
215 | prefer_initializing_formals: error
216 | prefer_inlined_adds: error
217 | prefer_is_not_operator: error
218 | prefer_null_aware_operators: error
219 | prefer_spread_collections: error
220 | prefer_void_to_null: error
221 | recursive_getters: error
222 | slash_for_doc_comments: error
223 | type_init_formals: error
224 | unnecessary_brace_in_string_interps: error
225 | unnecessary_const: error
226 | unnecessary_getters_setters: error
227 | unnecessary_new: error
228 | unnecessary_null_in_if_null_operators: error
229 | unnecessary_string_escapes: error
230 | unnecessary_string_interpolations: error
231 | unnecessary_this: error
232 | use_function_type_syntax_for_parameters: error
233 | use_rethrow_when_possible: error
234 | use_key_in_widget_constructors: ignore
235 |
236 | # Additional information about this file can be found at
237 | # https://dart.dev/guides/language/analysis-options
238 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 31
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.extrawest.flutter_roll_slot_machine"
38 | minSdkVersion 16
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
13 |
17 |
21 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/example/android/app/src/main/kotlin/com/extrawest/flutter_roll_slot_machine/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.extrawest.flutter_roll_slot_machine
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.21'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.1.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 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/example/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.4-all.zip
7 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/assets/images/777.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
377 |
--------------------------------------------------------------------------------
/example/assets/images/watermelon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
606 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
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 |
--------------------------------------------------------------------------------
/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/example/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 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
295 | PRODUCT_NAME = "$(TARGET_NAME)";
296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
297 | SWIFT_VERSION = 5.0;
298 | VERSIONING_SYSTEM = "apple-generic";
299 | };
300 | name = Profile;
301 | };
302 | 97C147031CF9000F007C117D /* Debug */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = dwarf;
333 | ENABLE_STRICT_OBJC_MSGSEND = YES;
334 | ENABLE_TESTABILITY = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_DYNAMIC_NO_PIC = NO;
337 | GCC_NO_COMMON_BLOCKS = YES;
338 | GCC_OPTIMIZATION_LEVEL = 0;
339 | GCC_PREPROCESSOR_DEFINITIONS = (
340 | "DEBUG=1",
341 | "$(inherited)",
342 | );
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
350 | MTL_ENABLE_DEBUG_INFO = YES;
351 | ONLY_ACTIVE_ARCH = YES;
352 | SDKROOT = iphoneos;
353 | TARGETED_DEVICE_FAMILY = "1,2";
354 | };
355 | name = Debug;
356 | };
357 | 97C147041CF9000F007C117D /* Release */ = {
358 | isa = XCBuildConfiguration;
359 | buildSettings = {
360 | ALWAYS_SEARCH_USER_PATHS = NO;
361 | CLANG_ANALYZER_NONNULL = YES;
362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
363 | CLANG_CXX_LIBRARY = "libc++";
364 | CLANG_ENABLE_MODULES = YES;
365 | CLANG_ENABLE_OBJC_ARC = YES;
366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
367 | CLANG_WARN_BOOL_CONVERSION = YES;
368 | CLANG_WARN_COMMA = YES;
369 | CLANG_WARN_CONSTANT_CONVERSION = YES;
370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
372 | CLANG_WARN_EMPTY_BODY = YES;
373 | CLANG_WARN_ENUM_CONVERSION = YES;
374 | CLANG_WARN_INFINITE_RECURSION = YES;
375 | CLANG_WARN_INT_CONVERSION = YES;
376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
381 | CLANG_WARN_STRICT_PROTOTYPES = YES;
382 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
383 | CLANG_WARN_UNREACHABLE_CODE = YES;
384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
386 | COPY_PHASE_STRIP = NO;
387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
388 | ENABLE_NS_ASSERTIONS = NO;
389 | ENABLE_STRICT_OBJC_MSGSEND = YES;
390 | GCC_C_LANGUAGE_STANDARD = gnu99;
391 | GCC_NO_COMMON_BLOCKS = YES;
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
399 | MTL_ENABLE_DEBUG_INFO = NO;
400 | SDKROOT = iphoneos;
401 | SUPPORTED_PLATFORMS = iphoneos;
402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
403 | TARGETED_DEVICE_FAMILY = "1,2";
404 | VALIDATE_PRODUCT = YES;
405 | };
406 | name = Release;
407 | };
408 | 97C147061CF9000F007C117D /* Debug */ = {
409 | isa = XCBuildConfiguration;
410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
411 | buildSettings = {
412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
413 | CLANG_ENABLE_MODULES = YES;
414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
415 | ENABLE_BITCODE = NO;
416 | INFOPLIST_FILE = Runner/Info.plist;
417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
419 | PRODUCT_NAME = "$(TARGET_NAME)";
420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
422 | SWIFT_VERSION = 5.0;
423 | VERSIONING_SYSTEM = "apple-generic";
424 | };
425 | name = Debug;
426 | };
427 | 97C147071CF9000F007C117D /* Release */ = {
428 | isa = XCBuildConfiguration;
429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
430 | buildSettings = {
431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
432 | CLANG_ENABLE_MODULES = YES;
433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434 | ENABLE_BITCODE = NO;
435 | INFOPLIST_FILE = Runner/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
440 | SWIFT_VERSION = 5.0;
441 | VERSIONING_SYSTEM = "apple-generic";
442 | };
443 | name = Release;
444 | };
445 | /* End XCBuildConfiguration section */
446 |
447 | /* Begin XCConfigurationList section */
448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
449 | isa = XCConfigurationList;
450 | buildConfigurations = (
451 | 97C147031CF9000F007C117D /* Debug */,
452 | 97C147041CF9000F007C117D /* Release */,
453 | 249021D3217E4FDB00AE95B9 /* Profile */,
454 | );
455 | defaultConfigurationIsVisible = 0;
456 | defaultConfigurationName = Release;
457 | };
458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147061CF9000F007C117D /* Debug */,
462 | 97C147071CF9000F007C117D /* Release */,
463 | 249021D4217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | /* End XCConfigurationList section */
469 | };
470 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
471 | }
472 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/example/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.
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 | example
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 |
--------------------------------------------------------------------------------
/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/example/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math';
2 |
3 | import 'package:example/theme.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter_svg/flutter_svg.dart';
6 | import 'package:roll_slot_machine/roll_slot.dart';
7 | import 'package:roll_slot_machine/roll_slot_controller.dart';
8 |
9 | class Assets {
10 | static const seventhIc = 'assets/images/777.svg';
11 | static const cherryIc = 'assets/images/cherry.svg';
12 | static const appleIc = 'assets/images/apple.svg';
13 | static const barIc = 'assets/images/bar.svg';
14 | static const coinIc = 'assets/images/coin.svg';
15 | static const crownIc = 'assets/images/crown.svg';
16 | static const lemonIc = 'assets/images/lemon.svg';
17 | static const watermelonIc = 'assets/images/watermelon.svg';
18 | }
19 |
20 | void main() {
21 | runApp(MyApp());
22 | }
23 |
24 | class MyApp extends StatelessWidget {
25 | @override
26 | Widget build(BuildContext context) {
27 | return MaterialApp(
28 | title: 'Roll Slot Machine',
29 | debugShowCheckedModeBanner: false,
30 | theme: ThemeData(
31 | primarySwatch: Colors.blue,
32 | visualDensity: VisualDensity.adaptivePlatformDensity,
33 | ),
34 | initialRoute: 'home',
35 | onGenerateRoute: onGenerateRoute,
36 | );
37 | }
38 |
39 | Route? onGenerateRoute(RouteSettings settings) {
40 | if (settings.name == 'home') {
41 | return MaterialPageRoute(
42 | builder: (BuildContext context) {
43 | return MyHomePage(
44 | title: 'title',
45 | );
46 | },
47 | );
48 | }
49 | return null;
50 | }
51 | }
52 |
53 | class MyHomePage extends StatefulWidget {
54 | MyHomePage({Key? key, required this.title}) : super(key: key);
55 |
56 | final String title;
57 |
58 | @override
59 | _MyHomePageState createState() => _MyHomePageState();
60 | }
61 |
62 | class _MyHomePageState extends State {
63 | List values = List.generate(100, (index) => index);
64 |
65 | final _rollSlotController = RollSlotController(secondsBeforeStop: 10);
66 | final _rollSlotController1 = RollSlotController(secondsBeforeStop: 10);
67 | final _rollSlotController2 = RollSlotController(secondsBeforeStop: 10);
68 | final _rollSlotController3 = RollSlotController(secondsBeforeStop: 10);
69 | final random = Random();
70 | final List prizesList = [
71 | Assets.seventhIc,
72 | Assets.cherryIc,
73 | Assets.appleIc,
74 | Assets.barIc,
75 | Assets.coinIc,
76 | Assets.crownIc,
77 | Assets.lemonIc,
78 | Assets.watermelonIc,
79 | ];
80 |
81 | @override
82 | void initState() {
83 | _rollSlotController.addListener(() {
84 | // trigger setState method to reload ui with new index
85 | // in our case the AppBar title will change
86 | setState(() {});
87 | });
88 | super.initState();
89 | }
90 |
91 | @override
92 | Widget build(BuildContext context) {
93 | return Scaffold(
94 | appBar: AppBar(
95 | title: Text('Roll slot machine'),
96 | centerTitle: true,
97 | ),
98 | body: Center(
99 | child: Padding(
100 | padding: const EdgeInsets.symmetric(horizontal: 8),
101 | child: Row(
102 | children: [
103 | RollSlotWidget(
104 | prizesList: prizesList,
105 | rollSlotController: _rollSlotController,
106 | ),
107 | RollSlotWidget(
108 | prizesList: prizesList,
109 | rollSlotController: _rollSlotController1,
110 | ),
111 | RollSlotWidget(
112 | prizesList: prizesList,
113 | rollSlotController: _rollSlotController2,
114 | ),
115 | RollSlotWidget(
116 | prizesList: prizesList,
117 | rollSlotController: _rollSlotController3,
118 | ),
119 | ],
120 | ),
121 | ),
122 | ),
123 | floatingActionButton: FloatingActionButton(
124 | onPressed: () {
125 | final index = prizesList.length - 1;
126 | _rollSlotController.animateRandomly(
127 | topIndex: Random().nextInt(index),
128 | centerIndex: Random().nextInt(index),
129 | bottomIndex: Random().nextInt(index));
130 | _rollSlotController1.animateRandomly(
131 | topIndex: Random().nextInt(index),
132 | centerIndex: Random().nextInt(index),
133 | bottomIndex: Random().nextInt(index));
134 | _rollSlotController2.animateRandomly(
135 | topIndex: Random().nextInt(index),
136 | centerIndex: Random().nextInt(index),
137 | bottomIndex: Random().nextInt(index));
138 | _rollSlotController3.animateRandomly(
139 | topIndex: Random().nextInt(index),
140 | centerIndex: Random().nextInt(index),
141 | bottomIndex: Random().nextInt(index));
142 | },
143 | child: Icon(Icons.refresh),
144 | ),
145 | );
146 | }
147 | }
148 |
149 | class RollSlotWidget extends StatelessWidget {
150 | final List prizesList;
151 |
152 | final RollSlotController rollSlotController;
153 |
154 | const RollSlotWidget({Key? key, required this.prizesList, required this.rollSlotController})
155 | : super(key: key);
156 |
157 | @override
158 | Widget build(BuildContext context) {
159 | return Flexible(
160 | child: Column(
161 | mainAxisAlignment: MainAxisAlignment.center,
162 | children: [
163 | Flexible(
164 | child: RollSlot(
165 | itemExtend: 115,
166 | rollSlotController: rollSlotController,
167 | children: prizesList.map(
168 | (e) {
169 | return BuildItem(
170 | asset: e,
171 | );
172 | },
173 | ).toList()),
174 | ),
175 | Flexible(
176 | child: TextButton(
177 | onPressed: () => rollSlotController.stop(),
178 | child: Text('Stop'),
179 | ),
180 | ),
181 | ],
182 | ),
183 | );
184 | }
185 | }
186 |
187 | class BuildItem extends StatelessWidget {
188 | const BuildItem({
189 | Key? key,
190 | required this.asset,
191 | }) : super(key: key);
192 |
193 | final String asset;
194 |
195 | @override
196 | Widget build(BuildContext context) {
197 | return Container(
198 | decoration: BoxDecoration(
199 | color: Colors.transparent,
200 | boxShadow: [
201 | BoxShadow(color: darkBlue1.withOpacity(.2), offset: Offset(5, 5)),
202 | BoxShadow(color: darkBlue1.withOpacity(.2), offset: Offset(-5, -5)),
203 | ],
204 | borderRadius: BorderRadius.circular(20),
205 | border: Border.all(
206 | color: darkBlue1,
207 | ),
208 | ),
209 | alignment: Alignment.center,
210 | child: SvgPicture.asset(
211 | asset,
212 | key: Key(asset),
213 | ),
214 | );
215 | }
216 | }
217 |
--------------------------------------------------------------------------------
/example/lib/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | final darkBlue1 = Color(0xff2f5d62);
4 |
--------------------------------------------------------------------------------
/example/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 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.9.0"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.1.0"
18 | change_app_package_name:
19 | dependency: "direct dev"
20 | description:
21 | name: change_app_package_name
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.1.0"
25 | characters:
26 | dependency: transitive
27 | description:
28 | name: characters
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.2.1"
32 | clock:
33 | dependency: transitive
34 | description:
35 | name: clock
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.1.1"
39 | collection:
40 | dependency: transitive
41 | description:
42 | name: collection
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.16.0"
46 | cupertino_icons:
47 | dependency: "direct main"
48 | description:
49 | name: cupertino_icons
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.0.5"
53 | fake_async:
54 | dependency: transitive
55 | description:
56 | name: fake_async
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.3.1"
60 | flutter:
61 | dependency: "direct main"
62 | description: flutter
63 | source: sdk
64 | version: "0.0.0"
65 | flutter_svg:
66 | dependency: "direct main"
67 | description:
68 | name: flutter_svg
69 | url: "https://pub.dartlang.org"
70 | source: hosted
71 | version: "1.1.6"
72 | flutter_test:
73 | dependency: "direct dev"
74 | description: flutter
75 | source: sdk
76 | version: "0.0.0"
77 | infinite_carousel:
78 | dependency: transitive
79 | description:
80 | name: infinite_carousel
81 | url: "https://pub.dartlang.org"
82 | source: hosted
83 | version: "1.0.2"
84 | matcher:
85 | dependency: transitive
86 | description:
87 | name: matcher
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "0.12.12"
91 | material_color_utilities:
92 | dependency: transitive
93 | description:
94 | name: material_color_utilities
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "0.1.5"
98 | meta:
99 | dependency: transitive
100 | description:
101 | name: meta
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "1.8.0"
105 | path:
106 | dependency: transitive
107 | description:
108 | name: path
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "1.8.2"
112 | path_drawing:
113 | dependency: transitive
114 | description:
115 | name: path_drawing
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "1.0.1"
119 | path_parsing:
120 | dependency: transitive
121 | description:
122 | name: path_parsing
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "1.0.1"
126 | petitparser:
127 | dependency: transitive
128 | description:
129 | name: petitparser
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "5.1.0"
133 | roll_slot_machine:
134 | dependency: "direct main"
135 | description:
136 | path: ".."
137 | relative: true
138 | source: path
139 | version: "1.0.0"
140 | sky_engine:
141 | dependency: transitive
142 | description: flutter
143 | source: sdk
144 | version: "0.0.99"
145 | source_span:
146 | dependency: transitive
147 | description:
148 | name: source_span
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "1.9.0"
152 | stack_trace:
153 | dependency: transitive
154 | description:
155 | name: stack_trace
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "1.10.0"
159 | stream_channel:
160 | dependency: transitive
161 | description:
162 | name: stream_channel
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "2.1.0"
166 | string_scanner:
167 | dependency: transitive
168 | description:
169 | name: string_scanner
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "1.1.1"
173 | term_glyph:
174 | dependency: transitive
175 | description:
176 | name: term_glyph
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "1.2.1"
180 | test_api:
181 | dependency: transitive
182 | description:
183 | name: test_api
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "0.4.12"
187 | vector_math:
188 | dependency: transitive
189 | description:
190 | name: vector_math
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "2.1.2"
194 | xml:
195 | dependency: transitive
196 | description:
197 | name: xml
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "6.1.0"
201 | sdks:
202 | dart: ">=2.18.5 <3.0.0"
203 | flutter: ">=2.11.0-0.1.pre"
204 |
--------------------------------------------------------------------------------
/example/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: example
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.18.5 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 |
27 | roll_slot_machine:
28 | path: ../
29 |
30 |
31 | # The following adds the Cupertino Icons font to your application.
32 | # Use with the CupertinoIcons class for iOS style icons.
33 | cupertino_icons: ^1.0.2
34 | flutter_svg: ^1.1.6
35 |
36 | dev_dependencies:
37 | change_app_package_name: ^1.1.0
38 | flutter_test:
39 | sdk: flutter
40 |
41 | # For information on the generic Dart part of this file, see the
42 | # following page: https://dart.dev/tools/pub/pubspec
43 |
44 | # The following section is specific to Flutter.
45 | flutter:
46 |
47 | # The following line ensures that the Material Icons font is
48 | # included with your application, so that you can use the icons in
49 | # the material Icons class.
50 | uses-material-design: true
51 | assets:
52 | - assets/images/
53 |
54 | # An image asset can refer to one or more resolution-specific "variants", see
55 | # https://flutter.dev/assets-and-images/#resolution-aware.
56 |
57 | # For details regarding adding assets from package dependencies, see
58 | # https://flutter.dev/assets-and-images/#from-packages
59 |
60 | # To add custom fonts to your application, add a fonts section here,
61 | # in this "flutter" section. Each entry in this list should have a
62 | # "family" key with the font family name, and a "fonts" key with a
63 | # list giving the asset and other descriptors for the font. For
64 | # example:
65 | # fonts:
66 | # - family: Schyler
67 | # fonts:
68 | # - asset: fonts/Schyler-Regular.ttf
69 | # - asset: fonts/Schyler-Italic.ttf
70 | # style: italic
71 | # - family: Trajan Pro
72 | # fonts:
73 | # - asset: fonts/TrajanPro.ttf
74 | # - asset: fonts/TrajanPro_Bold.ttf
75 | # weight: 700
76 | #
77 | # For details regarding fonts from package dependencies,
78 | # see https://flutter.dev/custom-fonts/#from-packages
79 |
--------------------------------------------------------------------------------
/example/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 | //
11 | // import 'package:example/main.dart';
12 | //
13 | // void main() {
14 | // testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // // Build our app and trigger a frame.
16 | // await tester.pumpWidget(MyApp());
17 | //
18 | // // Verify that our counter starts at 0.
19 | // expect(find.text('0'), findsOneWidget);
20 | // expect(find.text('1'), findsNothing);
21 | //
22 | // // Tap the '+' icon and trigger a frame.
23 | // await tester.tap(find.byIcon(Icons.add));
24 | // await tester.pump();
25 | //
26 | // // Verify that our counter has incremented.
27 | // expect(find.text('0'), findsNothing);
28 | // expect(find.text('1'), findsOneWidget);
29 | // });
30 | // }
31 |
--------------------------------------------------------------------------------
/example/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/web/favicon.png
--------------------------------------------------------------------------------
/example/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/example/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/extrawest/roll_slot_machine/600a442fa20b8d8931e525a61f16e943d2548e86/example/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/example/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | example
30 |
31 |
32 |
33 |
36 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/example/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "short_name": "example",
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 |
--------------------------------------------------------------------------------
/lib/roll_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class RollItem extends StatelessWidget {
4 | final int index;
5 | final Widget child;
6 |
7 | const RollItem({required this.index, required this.child, Key? key}) : super(key: key);
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return child;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/lib/roll_slot.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:math';
3 |
4 | import 'package:flutter/material.dart';
5 | import 'package:infinite_carousel/infinite_carousel.dart';
6 | import 'package:roll_slot_machine/roll_slot_controller.dart';
7 |
8 | typedef SelectedItemCallback = void Function({
9 | @required int currentIndex,
10 | @required Widget currentWidget,
11 | });
12 |
13 | // after hitting this index it will reset to zero
14 | const maxIndex = 50000;
15 |
16 | class RollSlot extends StatefulWidget {
17 | final RollSlotController? rollSlotController;
18 |
19 | final List children;
20 | final Curve curve;
21 |
22 | final double itemExtend;
23 |
24 | final EdgeInsets itemPadding;
25 |
26 | const RollSlot({
27 | Key? key,
28 | required this.itemExtend,
29 | required this.children,
30 | this.rollSlotController,
31 | this.curve = Curves.easeOut,
32 | this.itemPadding = const EdgeInsets.all(8.0),
33 | }) : super(key: key);
34 |
35 | @override
36 | _RollSlotState createState() => _RollSlotState();
37 | }
38 |
39 | class _RollSlotState extends State {
40 | final InfiniteScrollController _infiniteScrollController = InfiniteScrollController();
41 |
42 | int currentIndex = 0;
43 | int _stopIndex = 0;
44 | bool _isStopped = false;
45 |
46 | int topTemporaryIndex = 0;
47 | int centerTemporaryIndex = 0;
48 | int bottomTemporaryIndex = 0;
49 |
50 | late Timer _nextItemTimer;
51 |
52 | @override
53 | void initState() {
54 | addRollSlotControllerListener();
55 | super.initState();
56 | }
57 |
58 | @override
59 | void dispose() {
60 | _infiniteScrollController.dispose();
61 | super.dispose();
62 | }
63 |
64 | @override
65 | Widget build(BuildContext context) {
66 | return AbsorbPointer(
67 | absorbing: false,
68 | child: InfiniteCarousel.builder(
69 | physics: BouncingScrollPhysics(),
70 | itemExtent: widget.itemExtend,
71 | controller: _infiniteScrollController,
72 | itemCount: widget.children.length,
73 | axisDirection: Axis.vertical,
74 | itemBuilder: (context, index, realIndex) {
75 | if (widget.rollSlotController!.state.isStopped) {
76 | /// we build "winning" items on the specific indexes(top, center, bottom)
77 | /// only when rollSlotController is stopped
78 | /// we don't need to build especially them when slot is rolling
79 | if (realIndex == _stopIndex) {
80 | centerTemporaryIndex = widget.rollSlotController!.centerIndex;
81 | return widget.children[centerTemporaryIndex];
82 | } else if (realIndex == _stopIndex - 1) {
83 | topTemporaryIndex = widget.rollSlotController!.topIndex;
84 | return widget.children[topTemporaryIndex];
85 | } else if (realIndex == _stopIndex + 1) {
86 | bottomTemporaryIndex = widget.rollSlotController!.bottomIndex;
87 | return widget.children[bottomTemporaryIndex];
88 | } else {
89 | final random = Random().nextInt(widget.children.length - 1);
90 | return Container(child: widget.children[random]);
91 | }
92 | } else {
93 | /// this logic is necessary to avoid rebuilding previous
94 | /// top, center and bottom items, when user start to roll slot again
95 | if (realIndex == _stopIndex) {
96 | return widget.children[centerTemporaryIndex];
97 | } else if (realIndex == _stopIndex - 1) {
98 | return widget.children[topTemporaryIndex];
99 | } else if (realIndex == _stopIndex + 1) {
100 | return widget.children[bottomTemporaryIndex];
101 | } else {
102 | final random = Random().nextInt(widget.children.length - 1);
103 | return Container(child: widget.children[random]);
104 | }
105 | }
106 | },
107 | ),
108 | );
109 | }
110 |
111 | void addRollSlotControllerListener() {
112 | if (widget.rollSlotController != null) {
113 | widget.rollSlotController!.addListener(() {
114 | if (widget.rollSlotController!.state.isAnimateRandomly) {
115 | animate();
116 | }
117 | if (widget.rollSlotController!.state.isStopped) {
118 | stopRollSlot();
119 | }
120 | });
121 | }
122 | }
123 |
124 | Future animate() async {
125 | if (widget.rollSlotController != null) {
126 | _nextItemTimer = Timer.periodic(const Duration(milliseconds: 120), (timer) async {
127 | stopSlotAtIndex(
128 | currentRollIndex: currentIndex % widget.children.length,
129 | );
130 | });
131 | }
132 | }
133 |
134 | void stopSlotAtIndex({required int currentRollIndex}) {
135 | if (_isStopped) {
136 | _stopIndex = currentIndex + 10;
137 | _infiniteScrollController.animateToItem(
138 | _stopIndex,
139 | curve: Curves.easeOut,
140 | duration: Duration(milliseconds: 20 * 120),
141 | );
142 | _nextItemTimer.cancel();
143 | _isStopped = false;
144 | currentIndex = _stopIndex;
145 | } else {
146 | _infiniteScrollController.animateToItem(
147 | currentIndex,
148 | curve: widget.curve,
149 | duration: const Duration(milliseconds: 120),
150 | );
151 | }
152 | if (currentIndex >= maxIndex) {
153 | currentIndex = 0;
154 | } else {
155 | currentIndex++;
156 | }
157 | }
158 |
159 | void stopRollSlot() {
160 | if (widget.rollSlotController != null) {
161 | _isStopped = true;
162 | }
163 | }
164 | }
165 |
--------------------------------------------------------------------------------
/lib/roll_slot_controller.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:flutter/cupertino.dart';
4 |
5 | enum RollSlotControllerState { none, animateRandomly, stopped }
6 |
7 | class RollSlotController extends ChangeNotifier {
8 | RollSlotControllerState _state = RollSlotControllerState.none;
9 |
10 | RollSlotControllerState get state => _state;
11 |
12 | int _topIndex = 0;
13 | int _centerIndex = 0;
14 | int _bottomIndex = 0;
15 |
16 | int get centerIndex => _centerIndex;
17 | int get bottomIndex => _bottomIndex;
18 | int get topIndex => _topIndex;
19 |
20 | final int? secondsBeforeStop;
21 |
22 | late Timer _stopAutomaticallyTimer;
23 |
24 | RollSlotController({
25 | this.secondsBeforeStop,
26 | });
27 |
28 | void animateRandomly({
29 | required int topIndex,
30 | required int centerIndex,
31 | required int bottomIndex,
32 | }) {
33 | if (_state.isAnimateRandomly) {
34 | return;
35 | }
36 | _topIndex = topIndex;
37 | _centerIndex = centerIndex;
38 | _bottomIndex = bottomIndex;
39 |
40 | _state = RollSlotControllerState.animateRandomly;
41 | if (secondsBeforeStop != null) {
42 | _setAutomaticallyStopTimer(secondsBeforeStop!);
43 | }
44 | notifyListeners();
45 | }
46 |
47 | void stop() {
48 | if (_state.isAnimateRandomly) {
49 | _state = RollSlotControllerState.stopped;
50 | notifyListeners();
51 | }
52 | }
53 |
54 | void _setAutomaticallyStopTimer(int stopDuration) {
55 | _stopAutomaticallyTimer = Timer.periodic(const Duration(seconds: 1), (count) {
56 | if (count.tick == secondsBeforeStop) {
57 | if (!_state.isStopped) {
58 | stop();
59 | }
60 | _stopAutomaticallyTimer.cancel();
61 | }
62 | });
63 | }
64 | }
65 |
66 | extension RollSlotControllerStateExt on RollSlotControllerState {
67 | bool get isNone => this == RollSlotControllerState.none;
68 | bool get isAnimateRandomly => this == RollSlotControllerState.animateRandomly;
69 | bool get isStopped => this == RollSlotControllerState.stopped;
70 | }
71 |
--------------------------------------------------------------------------------
/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 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.9.0"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.1.0"
18 | characters:
19 | dependency: transitive
20 | description:
21 | name: characters
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.2.1"
25 | clock:
26 | dependency: transitive
27 | description:
28 | name: clock
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.1.1"
32 | collection:
33 | dependency: transitive
34 | description:
35 | name: collection
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.16.0"
39 | fake_async:
40 | dependency: transitive
41 | description:
42 | name: fake_async
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.3.1"
46 | flutter:
47 | dependency: "direct main"
48 | description: flutter
49 | source: sdk
50 | version: "0.0.0"
51 | flutter_test:
52 | dependency: "direct dev"
53 | description: flutter
54 | source: sdk
55 | version: "0.0.0"
56 | infinite_carousel:
57 | dependency: "direct main"
58 | description:
59 | name: infinite_carousel
60 | url: "https://pub.dartlang.org"
61 | source: hosted
62 | version: "1.0.2"
63 | matcher:
64 | dependency: transitive
65 | description:
66 | name: matcher
67 | url: "https://pub.dartlang.org"
68 | source: hosted
69 | version: "0.12.12"
70 | material_color_utilities:
71 | dependency: transitive
72 | description:
73 | name: material_color_utilities
74 | url: "https://pub.dartlang.org"
75 | source: hosted
76 | version: "0.1.5"
77 | meta:
78 | dependency: transitive
79 | description:
80 | name: meta
81 | url: "https://pub.dartlang.org"
82 | source: hosted
83 | version: "1.8.0"
84 | path:
85 | dependency: transitive
86 | description:
87 | name: path
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "1.8.2"
91 | sky_engine:
92 | dependency: transitive
93 | description: flutter
94 | source: sdk
95 | version: "0.0.99"
96 | source_span:
97 | dependency: transitive
98 | description:
99 | name: source_span
100 | url: "https://pub.dartlang.org"
101 | source: hosted
102 | version: "1.9.0"
103 | stack_trace:
104 | dependency: transitive
105 | description:
106 | name: stack_trace
107 | url: "https://pub.dartlang.org"
108 | source: hosted
109 | version: "1.10.0"
110 | stream_channel:
111 | dependency: transitive
112 | description:
113 | name: stream_channel
114 | url: "https://pub.dartlang.org"
115 | source: hosted
116 | version: "2.1.0"
117 | string_scanner:
118 | dependency: transitive
119 | description:
120 | name: string_scanner
121 | url: "https://pub.dartlang.org"
122 | source: hosted
123 | version: "1.1.1"
124 | term_glyph:
125 | dependency: transitive
126 | description:
127 | name: term_glyph
128 | url: "https://pub.dartlang.org"
129 | source: hosted
130 | version: "1.2.1"
131 | test_api:
132 | dependency: transitive
133 | description:
134 | name: test_api
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "0.4.12"
138 | vector_math:
139 | dependency: transitive
140 | description:
141 | name: vector_math
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "2.1.2"
145 | sdks:
146 | dart: ">=2.18.5 <3.0.0"
147 | flutter: ">=1.17.0"
148 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: roll_slot_machine
2 | description: A flutter package for randoming widgets.
3 | version: 1.0.0
4 | homepage: https://github.com/extrawest/roll_slot_machine
5 |
6 |
7 | environment:
8 | sdk: ">=2.18.5 <3.0.0"
9 |
10 | dependencies:
11 | flutter:
12 | sdk: flutter
13 | infinite_carousel: ^1.0.2
14 |
15 | dev_dependencies:
16 | flutter_test:
17 | sdk: flutter
18 |
19 | # For information on the generic Dart part of this file, see the
20 | # following page: https://dart.dev/tools/pub/pubspec
21 |
22 | # The following section is specific to Flutter.
23 | flutter:
24 |
25 | # To add assets to your package, add an assets section, like this:
26 | # assets:
27 | # - images/a_dot_burr.jpeg
28 | # - images/a_dot_ham.jpeg
29 | #
30 | # For details regarding assets in packages, see
31 | # https://flutter.dev/assets-and-images/#from-packages
32 | #
33 | # An image asset can refer to one or more resolution-specific "variants", see
34 | # https://flutter.dev/assets-and-images/#resolution-aware.
35 |
36 | # To add custom fonts to your package, add a fonts section here,
37 | # in this "flutter" section. Each entry in this list should have a
38 | # "family" key with the font family name, and a "fonts" key with a
39 | # list giving the asset and other descriptors for the font. For
40 | # example:
41 | # fonts:
42 | # - family: Schyler
43 | # fonts:
44 | # - asset: fonts/Schyler-Regular.ttf
45 | # - asset: fonts/Schyler-Italic.ttf
46 | # style: italic
47 | # - family: Trajan Pro
48 | # fonts:
49 | # - asset: fonts/TrajanPro.ttf
50 | # - asset: fonts/TrajanPro_Bold.ttf
51 | # weight: 700
52 | #
53 | # For details regarding fonts in packages, see
54 | # https://flutter.dev/custom-fonts/#from-packages
55 |
--------------------------------------------------------------------------------