Compare commits
5 Commits
8fc0a6ff86
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21e798b134 | ||
|
|
a812a70b1d | ||
|
|
09219b8ca1 | ||
|
|
d88b32d8f2 | ||
|
|
93a54ae19b |
@@ -1 +0,0 @@
|
|||||||
{"version":2,"entries":[{"package":"provider","rootUri":"file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/provider-6.1.5+1/","packageUri":"lib/","config":{"name":"provider","issueTracker":"https://github.com/rrousselGit/provider/issues","version":"0.0.1","materialIconCodePoint":"0xe0b1"}},{"package":"bahla_front","rootUri":"../","packageUri":"lib/"}]}
|
|
||||||
@@ -265,6 +265,12 @@
|
|||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.9"
|
"languageVersion": "3.9"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "json_serializable",
|
||||||
|
"rootUri": "file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/json_serializable-6.13.2",
|
||||||
|
"packageUri": "lib/",
|
||||||
|
"languageVersion": "3.9"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "leak_tracker",
|
"name": "leak_tracker",
|
||||||
"rootUri": "file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-11.0.2",
|
"rootUri": "file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-11.0.2",
|
||||||
@@ -481,6 +487,12 @@
|
|||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "3.9"
|
"languageVersion": "3.9"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "source_helper",
|
||||||
|
"rootUri": "file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/source_helper-1.3.12",
|
||||||
|
"packageUri": "lib/",
|
||||||
|
"languageVersion": "3.9"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "source_span",
|
"name": "source_span",
|
||||||
"rootUri": "file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.2",
|
"rootUri": "file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.2",
|
||||||
|
|||||||
@@ -1,425 +0,0 @@
|
|||||||
_fe_analyzer_shared
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/_fe_analyzer_shared-76.0.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/_fe_analyzer_shared-76.0.0/lib/
|
|
||||||
analyzer
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/analyzer-6.11.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/analyzer-6.11.0/lib/
|
|
||||||
args
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/args-2.6.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/args-2.6.0/lib/
|
|
||||||
async
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/async-2.13.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/async-2.13.0/lib/
|
|
||||||
boolean_selector
|
|
||||||
3.1
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/boolean_selector-2.1.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/boolean_selector-2.1.2/lib/
|
|
||||||
build
|
|
||||||
2.19
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build-2.4.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build-2.4.1/lib/
|
|
||||||
build_config
|
|
||||||
2.14
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build_config-1.1.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build_config-1.1.1/lib/
|
|
||||||
build_daemon
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build_daemon-4.0.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build_daemon-4.0.2/lib/
|
|
||||||
build_resolvers
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build_resolvers-2.4.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build_resolvers-2.4.2/lib/
|
|
||||||
build_runner
|
|
||||||
3.5
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build_runner-2.4.13/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build_runner-2.4.13/lib/
|
|
||||||
build_runner_core
|
|
||||||
3.5
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build_runner_core-7.3.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/build_runner_core-7.3.2/lib/
|
|
||||||
built_collection
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/built_collection-5.1.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/built_collection-5.1.1/lib/
|
|
||||||
built_value
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/built_value-8.9.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/built_value-8.9.2/lib/
|
|
||||||
characters
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/characters-1.4.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/characters-1.4.0/lib/
|
|
||||||
checked_yaml
|
|
||||||
2.19
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/checked_yaml-2.0.3/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/checked_yaml-2.0.3/lib/
|
|
||||||
clock
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/clock-1.1.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/clock-1.1.2/lib/
|
|
||||||
code_builder
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/code_builder-4.10.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/code_builder-4.10.0/lib/
|
|
||||||
collection
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/collection-1.19.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/collection-1.19.1/lib/
|
|
||||||
convert
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/convert-3.1.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/convert-3.1.2/lib/
|
|
||||||
crypto
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/crypto-3.0.6/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/crypto-3.0.6/lib/
|
|
||||||
dart_style
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.7/lib/
|
|
||||||
fake_async
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/fake_async-1.3.3/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/fake_async-1.3.3/lib/
|
|
||||||
ffi
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/ffi-2.1.3/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/ffi-2.1.3/lib/
|
|
||||||
file
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/file-7.0.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/file-7.0.1/lib/
|
|
||||||
fixnum
|
|
||||||
3.1
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/fixnum-1.1.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/fixnum-1.1.1/lib/
|
|
||||||
flutter_lints
|
|
||||||
2.19
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-2.0.3/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-2.0.3/lib/
|
|
||||||
flutter_svg
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_svg-2.0.11/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_svg-2.0.11/lib/
|
|
||||||
freezed_annotation
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/freezed_annotation-2.4.4/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/freezed_annotation-2.4.4/lib/
|
|
||||||
frontend_server_client
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/frontend_server_client-4.0.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/frontend_server_client-4.0.0/lib/
|
|
||||||
get
|
|
||||||
2.15
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/get-4.6.6/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/get-4.6.6/lib/
|
|
||||||
get_it
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/get_it-7.7.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/get_it-7.7.0/lib/
|
|
||||||
glob
|
|
||||||
2.19
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/glob-2.1.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/glob-2.1.2/lib/
|
|
||||||
google_fonts
|
|
||||||
2.14
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-6.2.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-6.2.1/lib/
|
|
||||||
graphs
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/graphs-2.3.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/graphs-2.3.2/lib/
|
|
||||||
http
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/http-1.2.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/http-1.2.2/lib/
|
|
||||||
http_multi_server
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/http_multi_server-3.2.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/http_multi_server-3.2.1/lib/
|
|
||||||
http_parser
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/http_parser-4.0.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/http_parser-4.0.2/lib/
|
|
||||||
intl
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/intl-0.20.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/intl-0.20.2/lib/
|
|
||||||
io
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/io-1.0.4/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/io-1.0.4/lib/
|
|
||||||
js
|
|
||||||
3.1
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/js-0.7.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/js-0.7.1/lib/
|
|
||||||
json_annotation
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/json_annotation-4.9.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/json_annotation-4.9.0/lib/
|
|
||||||
leak_tracker
|
|
||||||
3.2
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-10.0.9/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-10.0.9/lib/
|
|
||||||
leak_tracker_flutter_testing
|
|
||||||
3.2
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/lib/
|
|
||||||
leak_tracker_testing
|
|
||||||
3.2
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_testing-3.0.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_testing-3.0.1/lib/
|
|
||||||
lints
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/lints-2.1.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/lints-2.1.1/lib/
|
|
||||||
logger
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/logger-1.4.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/logger-1.4.0/lib/
|
|
||||||
logging
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/logging-1.3.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/logging-1.3.0/lib/
|
|
||||||
macros
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/macros-0.1.3-main.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/macros-0.1.3-main.0/lib/
|
|
||||||
matcher
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.17/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.17/lib/
|
|
||||||
material_color_utilities
|
|
||||||
2.17
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.11.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.11.1/lib/
|
|
||||||
meta
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.16.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.16.0/lib/
|
|
||||||
mime
|
|
||||||
3.2
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/mime-2.0.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/mime-2.0.0/lib/
|
|
||||||
mockito
|
|
||||||
3.1
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/mockito-5.4.4/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/mockito-5.4.4/lib/
|
|
||||||
nested
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/nested-1.0.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/nested-1.0.0/lib/
|
|
||||||
package_config
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/package_config-2.1.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/package_config-2.1.0/lib/
|
|
||||||
path
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.9.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.9.1/lib/
|
|
||||||
path_parsing
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_parsing-1.0.3/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_parsing-1.0.3/lib/
|
|
||||||
path_provider
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider-2.1.5/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider-2.1.5/lib/
|
|
||||||
path_provider_android
|
|
||||||
3.5
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_android-2.2.12/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_android-2.2.12/lib/
|
|
||||||
path_provider_foundation
|
|
||||||
3.2
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_foundation-2.4.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_foundation-2.4.0/lib/
|
|
||||||
path_provider_linux
|
|
||||||
2.19
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_linux-2.2.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_linux-2.2.1/lib/
|
|
||||||
path_provider_platform_interface
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/lib/
|
|
||||||
path_provider_windows
|
|
||||||
3.2
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_windows-2.3.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_windows-2.3.0/lib/
|
|
||||||
petitparser
|
|
||||||
3.2
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/petitparser-6.0.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/petitparser-6.0.2/lib/
|
|
||||||
platform
|
|
||||||
3.2
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/platform-3.1.6/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/platform-3.1.6/lib/
|
|
||||||
plugin_platform_interface
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/plugin_platform_interface-2.1.8/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/plugin_platform_interface-2.1.8/lib/
|
|
||||||
pool
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/pool-1.5.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/pool-1.5.1/lib/
|
|
||||||
provider
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/provider-6.1.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/provider-6.1.2/lib/
|
|
||||||
pub_semver
|
|
||||||
2.17
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/pub_semver-2.1.4/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/pub_semver-2.1.4/lib/
|
|
||||||
pubspec_parse
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/pubspec_parse-1.3.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/pubspec_parse-1.3.0/lib/
|
|
||||||
recase
|
|
||||||
2.12
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/recase-4.1.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/recase-4.1.0/lib/
|
|
||||||
shelf
|
|
||||||
2.17
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/shelf-1.4.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/shelf-1.4.1/lib/
|
|
||||||
shelf_web_socket
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/shelf_web_socket-2.0.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/shelf_web_socket-2.0.0/lib/
|
|
||||||
source_gen
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/source_gen-1.5.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/source_gen-1.5.0/lib/
|
|
||||||
source_span
|
|
||||||
3.1
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.1/lib/
|
|
||||||
stack_trace
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stack_trace-1.12.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stack_trace-1.12.1/lib/
|
|
||||||
stacked
|
|
||||||
2.17
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stacked-3.4.3/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stacked-3.4.3/lib/
|
|
||||||
stacked_generator
|
|
||||||
2.17
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stacked_generator-1.6.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stacked_generator-1.6.1/lib/
|
|
||||||
stacked_services
|
|
||||||
2.15
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stacked_services-1.5.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stacked_services-1.5.1/lib/
|
|
||||||
stacked_shared
|
|
||||||
2.16
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stacked_shared-1.4.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stacked_shared-1.4.1/lib/
|
|
||||||
stream_channel
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stream_channel-2.1.4/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stream_channel-2.1.4/lib/
|
|
||||||
stream_transform
|
|
||||||
2.14
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stream_transform-2.1.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/stream_transform-2.1.0/lib/
|
|
||||||
string_scanner
|
|
||||||
3.1
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/string_scanner-1.4.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/string_scanner-1.4.1/lib/
|
|
||||||
term_glyph
|
|
||||||
3.1
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/term_glyph-1.2.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/term_glyph-1.2.2/lib/
|
|
||||||
test_api
|
|
||||||
3.5
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.4/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.4/lib/
|
|
||||||
timing
|
|
||||||
2.14
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/timing-1.0.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/timing-1.0.1/lib/
|
|
||||||
typed_data
|
|
||||||
3.5
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/typed_data-1.4.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/typed_data-1.4.0/lib/
|
|
||||||
universal_io
|
|
||||||
2.17
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/universal_io-2.2.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/universal_io-2.2.2/lib/
|
|
||||||
vector_graphics
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/vector_graphics-1.1.12/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/vector_graphics-1.1.12/lib/
|
|
||||||
vector_graphics_codec
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/vector_graphics_codec-1.1.12/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/vector_graphics_codec-1.1.12/lib/
|
|
||||||
vector_graphics_compiler
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/vector_graphics_compiler-1.1.12/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/vector_graphics_compiler-1.1.12/lib/
|
|
||||||
vector_math
|
|
||||||
2.14
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.1.4/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.1.4/lib/
|
|
||||||
vm_service
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-15.0.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-15.0.0/lib/
|
|
||||||
watcher
|
|
||||||
3.0
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/watcher-1.1.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/watcher-1.1.0/lib/
|
|
||||||
web
|
|
||||||
3.4
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/web-1.1.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/web-1.1.0/lib/
|
|
||||||
web_socket
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/web_socket-0.1.6/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/web_socket-0.1.6/lib/
|
|
||||||
web_socket_channel
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/web_socket_channel-3.0.1/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/web_socket_channel-3.0.1/lib/
|
|
||||||
xdg_directories
|
|
||||||
3.3
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/xdg_directories-1.1.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/xdg_directories-1.1.0/lib/
|
|
||||||
xml
|
|
||||||
3.2
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/xml-6.5.0/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/xml-6.5.0/lib/
|
|
||||||
yaml
|
|
||||||
2.19
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/yaml-3.1.2/
|
|
||||||
file:///C:/Users/Yael/AppData/Local/Pub/Cache/hosted/pub.dev/yaml-3.1.2/lib/
|
|
||||||
_macros
|
|
||||||
3.5
|
|
||||||
file:///D:/SDK/flutter/bin/cache/dart-sdk/pkg/_macros/
|
|
||||||
file:///D:/SDK/flutter/bin/cache/dart-sdk/pkg/_macros/lib/
|
|
||||||
sky_engine
|
|
||||||
3.7
|
|
||||||
file:///D:/SDK/flutter/bin/cache/pkg/sky_engine/
|
|
||||||
file:///D:/SDK/flutter/bin/cache/pkg/sky_engine/lib/
|
|
||||||
flutter
|
|
||||||
3.7
|
|
||||||
file:///D:/SDK/flutter/packages/flutter/
|
|
||||||
file:///D:/SDK/flutter/packages/flutter/lib/
|
|
||||||
flutter_localizations
|
|
||||||
3.7
|
|
||||||
file:///D:/SDK/flutter/packages/flutter_localizations/
|
|
||||||
file:///D:/SDK/flutter/packages/flutter_localizations/lib/
|
|
||||||
flutter_test
|
|
||||||
3.7
|
|
||||||
file:///D:/SDK/flutter/packages/flutter_test/
|
|
||||||
file:///D:/SDK/flutter/packages/flutter_test/lib/
|
|
||||||
bahla_front
|
|
||||||
3.0
|
|
||||||
file:///W:/Dev/Client/Bahla%20Team/bahla_front/
|
|
||||||
file:///W:/Dev/Client/Bahla%20Team/bahla_front/lib/
|
|
||||||
2
|
|
||||||
@@ -21113,6 +21113,7 @@ limitations under the License.
|
|||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
json_annotation
|
json_annotation
|
||||||
|
json_serializable
|
||||||
platform
|
platform
|
||||||
|
|
||||||
Copyright 2017, the Dart project authors. All rights reserved.
|
Copyright 2017, the Dart project authors. All rights reserved.
|
||||||
@@ -24303,6 +24304,7 @@ material_color_utilities
|
|||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
mockito
|
mockito
|
||||||
|
source_helper
|
||||||
|
|
||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
// dart format width=80
|
||||||
|
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
// StackedBottomsheetGenerator
|
// StackedBottomsheetGenerator
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ import 'package:bahla_front/ui/views/event_details/event_details_view.dart';
|
|||||||
MaterialRoute(page: HomeView),
|
MaterialRoute(page: HomeView),
|
||||||
MaterialRoute(page: StartupView),
|
MaterialRoute(page: StartupView),
|
||||||
MaterialRoute(page: MainView),
|
MaterialRoute(page: MainView),
|
||||||
MaterialRoute(page: HomeView),
|
|
||||||
MaterialRoute(page: EventDetailsView),
|
|
||||||
MaterialRoute(page: EventDetailsView),
|
MaterialRoute(page: EventDetailsView),
|
||||||
// @stacked-route
|
// @stacked-route
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
// dart format width=80
|
||||||
|
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
// StackedDialogGenerator
|
// StackedDialogGenerator
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
// dart format width=80
|
||||||
|
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
// StackedLocatorGenerator
|
// StackedLocatorGenerator
|
||||||
@@ -13,10 +14,8 @@ import 'package:stacked_shared/stacked_shared.dart';
|
|||||||
|
|
||||||
final locator = StackedLocator.instance;
|
final locator = StackedLocator.instance;
|
||||||
|
|
||||||
Future<void> setupLocator({
|
Future<void> setupLocator(
|
||||||
String? environment,
|
{String? environment, EnvironmentFilter? environmentFilter}) async {
|
||||||
EnvironmentFilter? environmentFilter,
|
|
||||||
}) async {
|
|
||||||
// Register environments
|
// Register environments
|
||||||
locator.registerEnvironment(
|
locator.registerEnvironment(
|
||||||
environment: environment, environmentFilter: environmentFilter);
|
environment: environment, environmentFilter: environmentFilter);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
// dart format width=80
|
||||||
|
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
// StackedNavigatorGenerator
|
// StackedNavigatorGenerator
|
||||||
@@ -16,12 +17,12 @@ import 'package:stacked/stacked.dart' as _i1;
|
|||||||
import 'package:stacked_services/stacked_services.dart' as _i7;
|
import 'package:stacked_services/stacked_services.dart' as _i7;
|
||||||
|
|
||||||
class Routes {
|
class Routes {
|
||||||
|
static const homeView = '/home-view';
|
||||||
|
|
||||||
static const startupView = '/startup-view';
|
static const startupView = '/startup-view';
|
||||||
|
|
||||||
static const mainView = '/main-view';
|
static const mainView = '/main-view';
|
||||||
|
|
||||||
static const homeView = '/home-view';
|
|
||||||
|
|
||||||
static const eventDetailsView = '/event-details-view';
|
static const eventDetailsView = '/event-details-view';
|
||||||
|
|
||||||
static const all = <String>{
|
static const all = <String>{
|
||||||
@@ -34,6 +35,10 @@ class Routes {
|
|||||||
|
|
||||||
class StackedRouter extends _i1.RouterBase {
|
class StackedRouter extends _i1.RouterBase {
|
||||||
final _routes = <_i1.RouteDef>[
|
final _routes = <_i1.RouteDef>[
|
||||||
|
_i1.RouteDef(
|
||||||
|
Routes.homeView,
|
||||||
|
page: _i2.HomeView,
|
||||||
|
),
|
||||||
_i1.RouteDef(
|
_i1.RouteDef(
|
||||||
Routes.startupView,
|
Routes.startupView,
|
||||||
page: _i3.StartupView,
|
page: _i3.StartupView,
|
||||||
@@ -42,10 +47,6 @@ class StackedRouter extends _i1.RouterBase {
|
|||||||
Routes.mainView,
|
Routes.mainView,
|
||||||
page: _i4.MainView,
|
page: _i4.MainView,
|
||||||
),
|
),
|
||||||
_i1.RouteDef(
|
|
||||||
Routes.homeView,
|
|
||||||
page: _i2.HomeView,
|
|
||||||
),
|
|
||||||
_i1.RouteDef(
|
_i1.RouteDef(
|
||||||
Routes.eventDetailsView,
|
Routes.eventDetailsView,
|
||||||
page: _i5.EventDetailsView,
|
page: _i5.EventDetailsView,
|
||||||
@@ -54,20 +55,29 @@ class StackedRouter extends _i1.RouterBase {
|
|||||||
|
|
||||||
final _pagesMap = <Type, _i1.StackedRouteFactory>{
|
final _pagesMap = <Type, _i1.StackedRouteFactory>{
|
||||||
_i2.HomeView: (data) {
|
_i2.HomeView: (data) {
|
||||||
|
final args = data.getArgs<HomeViewArguments>(
|
||||||
|
orElse: () => const HomeViewArguments(),
|
||||||
|
);
|
||||||
return _i6.MaterialPageRoute<dynamic>(
|
return _i6.MaterialPageRoute<dynamic>(
|
||||||
builder: (context) => const _i2.HomeView(),
|
builder: (context) => _i2.HomeView(key: args.key),
|
||||||
settings: data,
|
settings: data,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
_i3.StartupView: (data) {
|
_i3.StartupView: (data) {
|
||||||
|
final args = data.getArgs<StartupViewArguments>(
|
||||||
|
orElse: () => const StartupViewArguments(),
|
||||||
|
);
|
||||||
return _i6.MaterialPageRoute<dynamic>(
|
return _i6.MaterialPageRoute<dynamic>(
|
||||||
builder: (context) => const _i3.StartupView(),
|
builder: (context) => _i3.StartupView(key: args.key),
|
||||||
settings: data,
|
settings: data,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
_i4.MainView: (data) {
|
_i4.MainView: (data) {
|
||||||
|
final args = data.getArgs<MainViewArguments>(
|
||||||
|
orElse: () => const MainViewArguments(),
|
||||||
|
);
|
||||||
return _i6.MaterialPageRoute<dynamic>(
|
return _i6.MaterialPageRoute<dynamic>(
|
||||||
builder: (context) => const _i4.MainView(),
|
builder: (context) => _i4.MainView(key: args.key),
|
||||||
settings: data,
|
settings: data,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -88,6 +98,72 @@ class StackedRouter extends _i1.RouterBase {
|
|||||||
Map<Type, _i1.StackedRouteFactory> get pagesMap => _pagesMap;
|
Map<Type, _i1.StackedRouteFactory> get pagesMap => _pagesMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class HomeViewArguments {
|
||||||
|
const HomeViewArguments({this.key});
|
||||||
|
|
||||||
|
final _i6.Key? key;
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() {
|
||||||
|
return '{"key": "$key"}';
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(covariant HomeViewArguments other) {
|
||||||
|
if (identical(this, other)) return true;
|
||||||
|
return other.key == key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode {
|
||||||
|
return key.hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class StartupViewArguments {
|
||||||
|
const StartupViewArguments({this.key});
|
||||||
|
|
||||||
|
final _i6.Key? key;
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() {
|
||||||
|
return '{"key": "$key"}';
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(covariant StartupViewArguments other) {
|
||||||
|
if (identical(this, other)) return true;
|
||||||
|
return other.key == key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode {
|
||||||
|
return key.hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class MainViewArguments {
|
||||||
|
const MainViewArguments({this.key});
|
||||||
|
|
||||||
|
final _i6.Key? key;
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() {
|
||||||
|
return '{"key": "$key"}';
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(covariant MainViewArguments other) {
|
||||||
|
if (identical(this, other)) return true;
|
||||||
|
return other.key == key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode {
|
||||||
|
return key.hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class EventDetailsViewArguments {
|
class EventDetailsViewArguments {
|
||||||
const EventDetailsViewArguments({
|
const EventDetailsViewArguments({
|
||||||
this.key,
|
this.key,
|
||||||
@@ -116,42 +192,48 @@ class EventDetailsViewArguments {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extension NavigatorStateExtension on _i7.NavigationService {
|
extension NavigatorStateExtension on _i7.NavigationService {
|
||||||
Future<dynamic> navigateToStartupView([
|
Future<dynamic> navigateToHomeView({
|
||||||
|
_i6.Key? key,
|
||||||
int? routerId,
|
int? routerId,
|
||||||
bool preventDuplicates = true,
|
bool preventDuplicates = true,
|
||||||
Map<String, String>? parameters,
|
Map<String, String>? parameters,
|
||||||
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
||||||
transition,
|
transition,
|
||||||
]) async {
|
}) async {
|
||||||
return navigateTo<dynamic>(Routes.startupView,
|
|
||||||
id: routerId,
|
|
||||||
preventDuplicates: preventDuplicates,
|
|
||||||
parameters: parameters,
|
|
||||||
transition: transition);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<dynamic> navigateToMainView([
|
|
||||||
int? routerId,
|
|
||||||
bool preventDuplicates = true,
|
|
||||||
Map<String, String>? parameters,
|
|
||||||
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
|
||||||
transition,
|
|
||||||
]) async {
|
|
||||||
return navigateTo<dynamic>(Routes.mainView,
|
|
||||||
id: routerId,
|
|
||||||
preventDuplicates: preventDuplicates,
|
|
||||||
parameters: parameters,
|
|
||||||
transition: transition);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<dynamic> navigateToHomeView([
|
|
||||||
int? routerId,
|
|
||||||
bool preventDuplicates = true,
|
|
||||||
Map<String, String>? parameters,
|
|
||||||
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
|
||||||
transition,
|
|
||||||
]) async {
|
|
||||||
return navigateTo<dynamic>(Routes.homeView,
|
return navigateTo<dynamic>(Routes.homeView,
|
||||||
|
arguments: HomeViewArguments(key: key),
|
||||||
|
id: routerId,
|
||||||
|
preventDuplicates: preventDuplicates,
|
||||||
|
parameters: parameters,
|
||||||
|
transition: transition);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> navigateToStartupView({
|
||||||
|
_i6.Key? key,
|
||||||
|
int? routerId,
|
||||||
|
bool preventDuplicates = true,
|
||||||
|
Map<String, String>? parameters,
|
||||||
|
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
||||||
|
transition,
|
||||||
|
}) async {
|
||||||
|
return navigateTo<dynamic>(Routes.startupView,
|
||||||
|
arguments: StartupViewArguments(key: key),
|
||||||
|
id: routerId,
|
||||||
|
preventDuplicates: preventDuplicates,
|
||||||
|
parameters: parameters,
|
||||||
|
transition: transition);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> navigateToMainView({
|
||||||
|
_i6.Key? key,
|
||||||
|
int? routerId,
|
||||||
|
bool preventDuplicates = true,
|
||||||
|
Map<String, String>? parameters,
|
||||||
|
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
||||||
|
transition,
|
||||||
|
}) async {
|
||||||
|
return navigateTo<dynamic>(Routes.mainView,
|
||||||
|
arguments: MainViewArguments(key: key),
|
||||||
id: routerId,
|
id: routerId,
|
||||||
preventDuplicates: preventDuplicates,
|
preventDuplicates: preventDuplicates,
|
||||||
parameters: parameters,
|
parameters: parameters,
|
||||||
@@ -175,42 +257,48 @@ extension NavigatorStateExtension on _i7.NavigationService {
|
|||||||
transition: transition);
|
transition: transition);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<dynamic> replaceWithStartupView([
|
Future<dynamic> replaceWithHomeView({
|
||||||
|
_i6.Key? key,
|
||||||
int? routerId,
|
int? routerId,
|
||||||
bool preventDuplicates = true,
|
bool preventDuplicates = true,
|
||||||
Map<String, String>? parameters,
|
Map<String, String>? parameters,
|
||||||
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
||||||
transition,
|
transition,
|
||||||
]) async {
|
}) async {
|
||||||
return replaceWith<dynamic>(Routes.startupView,
|
|
||||||
id: routerId,
|
|
||||||
preventDuplicates: preventDuplicates,
|
|
||||||
parameters: parameters,
|
|
||||||
transition: transition);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<dynamic> replaceWithMainView([
|
|
||||||
int? routerId,
|
|
||||||
bool preventDuplicates = true,
|
|
||||||
Map<String, String>? parameters,
|
|
||||||
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
|
||||||
transition,
|
|
||||||
]) async {
|
|
||||||
return replaceWith<dynamic>(Routes.mainView,
|
|
||||||
id: routerId,
|
|
||||||
preventDuplicates: preventDuplicates,
|
|
||||||
parameters: parameters,
|
|
||||||
transition: transition);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<dynamic> replaceWithHomeView([
|
|
||||||
int? routerId,
|
|
||||||
bool preventDuplicates = true,
|
|
||||||
Map<String, String>? parameters,
|
|
||||||
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
|
||||||
transition,
|
|
||||||
]) async {
|
|
||||||
return replaceWith<dynamic>(Routes.homeView,
|
return replaceWith<dynamic>(Routes.homeView,
|
||||||
|
arguments: HomeViewArguments(key: key),
|
||||||
|
id: routerId,
|
||||||
|
preventDuplicates: preventDuplicates,
|
||||||
|
parameters: parameters,
|
||||||
|
transition: transition);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> replaceWithStartupView({
|
||||||
|
_i6.Key? key,
|
||||||
|
int? routerId,
|
||||||
|
bool preventDuplicates = true,
|
||||||
|
Map<String, String>? parameters,
|
||||||
|
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
||||||
|
transition,
|
||||||
|
}) async {
|
||||||
|
return replaceWith<dynamic>(Routes.startupView,
|
||||||
|
arguments: StartupViewArguments(key: key),
|
||||||
|
id: routerId,
|
||||||
|
preventDuplicates: preventDuplicates,
|
||||||
|
parameters: parameters,
|
||||||
|
transition: transition);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> replaceWithMainView({
|
||||||
|
_i6.Key? key,
|
||||||
|
int? routerId,
|
||||||
|
bool preventDuplicates = true,
|
||||||
|
Map<String, String>? parameters,
|
||||||
|
Widget Function(BuildContext, Animation<double>, Animation<double>, Widget)?
|
||||||
|
transition,
|
||||||
|
}) async {
|
||||||
|
return replaceWith<dynamic>(Routes.mainView,
|
||||||
|
arguments: MainViewArguments(key: key),
|
||||||
id: routerId,
|
id: routerId,
|
||||||
preventDuplicates: preventDuplicates,
|
preventDuplicates: preventDuplicates,
|
||||||
parameters: parameters,
|
parameters: parameters,
|
||||||
|
|||||||
20
lib/models/animator.dart
Normal file
20
lib/models/animator.dart
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
part 'animator.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class Animator {
|
||||||
|
final String id;
|
||||||
|
final String name;
|
||||||
|
final String content;
|
||||||
|
final String authorImageUrl = 'https://placehold.co/400x400/png';
|
||||||
|
|
||||||
|
Animator({
|
||||||
|
required this.id,
|
||||||
|
required this.name,
|
||||||
|
required this.content,
|
||||||
|
});
|
||||||
|
|
||||||
|
factory Animator.fromJson(Map<String, dynamic> json) => _$AnimatorFromJson(json);
|
||||||
|
Map<String, dynamic> toJson() => _$AnimatorToJson(this);
|
||||||
|
}
|
||||||
19
lib/models/animator.g.dart
Normal file
19
lib/models/animator.g.dart
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'animator.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
Animator _$AnimatorFromJson(Map<String, dynamic> json) => Animator(
|
||||||
|
id: json['id'] as String,
|
||||||
|
name: json['name'] as String,
|
||||||
|
content: json['content'] as String,
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$AnimatorToJson(Animator instance) => <String, dynamic>{
|
||||||
|
'id': instance.id,
|
||||||
|
'name': instance.name,
|
||||||
|
'content': instance.content,
|
||||||
|
};
|
||||||
23
lib/models/comment.dart
Normal file
23
lib/models/comment.dart
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
part 'comment.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class Comment {
|
||||||
|
final String id;
|
||||||
|
final String postId;
|
||||||
|
final String content;
|
||||||
|
final String authorName;
|
||||||
|
final String authorImageUrl;
|
||||||
|
|
||||||
|
Comment({
|
||||||
|
required this.id,
|
||||||
|
required this.postId,
|
||||||
|
required this.content,
|
||||||
|
required this.authorName,
|
||||||
|
required this.authorImageUrl,
|
||||||
|
});
|
||||||
|
|
||||||
|
factory Comment.fromJson(Map<String, dynamic> json) => _$CommentFromJson(json);
|
||||||
|
Map<String, dynamic> toJson() => _$CommentToJson(this);
|
||||||
|
}
|
||||||
23
lib/models/comment.g.dart
Normal file
23
lib/models/comment.g.dart
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'comment.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
Comment _$CommentFromJson(Map<String, dynamic> json) => Comment(
|
||||||
|
id: json['id'] as String,
|
||||||
|
postId: json['postId'] as String,
|
||||||
|
content: json['content'] as String,
|
||||||
|
authorName: json['authorName'] as String,
|
||||||
|
authorImageUrl: json['authorImageUrl'] as String,
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$CommentToJson(Comment instance) => <String, dynamic>{
|
||||||
|
'id': instance.id,
|
||||||
|
'postId': instance.postId,
|
||||||
|
'content': instance.content,
|
||||||
|
'authorName': instance.authorName,
|
||||||
|
'authorImageUrl': instance.authorImageUrl,
|
||||||
|
};
|
||||||
25
lib/models/event.dart
Normal file
25
lib/models/event.dart
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
part 'event.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class Event {
|
||||||
|
String name;
|
||||||
|
String picture;
|
||||||
|
String organizer = 'Organizer';
|
||||||
|
String? place;
|
||||||
|
DateTime? date;
|
||||||
|
bool isFavorite;
|
||||||
|
|
||||||
|
Event({
|
||||||
|
required this.name,
|
||||||
|
required this.picture,
|
||||||
|
required this.organizer,
|
||||||
|
this.date,
|
||||||
|
this.place,
|
||||||
|
this.isFavorite = false,
|
||||||
|
});
|
||||||
|
|
||||||
|
factory Event.fromJson(Map<String, dynamic> json) => _$EventFromJson(json);
|
||||||
|
Map<String, dynamic> toJson() => _$EventToJson(this);
|
||||||
|
}
|
||||||
26
lib/models/event.g.dart
Normal file
26
lib/models/event.g.dart
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'event.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
Event _$EventFromJson(Map<String, dynamic> json) => Event(
|
||||||
|
name: json['name'] as String,
|
||||||
|
picture: json['picture'] as String,
|
||||||
|
organizer: json['organizer'] as String,
|
||||||
|
date:
|
||||||
|
json['date'] == null ? null : DateTime.parse(json['date'] as String),
|
||||||
|
place: json['place'] as String?,
|
||||||
|
isFavorite: json['isFavorite'] as bool? ?? false,
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$EventToJson(Event instance) => <String, dynamic>{
|
||||||
|
'name': instance.name,
|
||||||
|
'picture': instance.picture,
|
||||||
|
'organizer': instance.organizer,
|
||||||
|
'place': instance.place,
|
||||||
|
'date': instance.date?.toIso8601String(),
|
||||||
|
'isFavorite': instance.isFavorite,
|
||||||
|
};
|
||||||
33
lib/models/post.dart
Normal file
33
lib/models/post.dart
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
part 'post.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class Post {
|
||||||
|
final String title;
|
||||||
|
final String content;
|
||||||
|
final String authorName;
|
||||||
|
final String authorImageUrl;
|
||||||
|
final DateTime publishDate;
|
||||||
|
final List<String>? imageUrls;
|
||||||
|
final int likesCount;
|
||||||
|
final int commentsCount;
|
||||||
|
final int sharesCount;
|
||||||
|
final double? aspectRatio; // Nouveau paramètre pour le ratio (largeur/hauteur)
|
||||||
|
|
||||||
|
Post({
|
||||||
|
required this.title,
|
||||||
|
required this.content,
|
||||||
|
required this.authorName,
|
||||||
|
required this.authorImageUrl,
|
||||||
|
required this.publishDate,
|
||||||
|
this.imageUrls,
|
||||||
|
this.likesCount = 0,
|
||||||
|
this.commentsCount = 0,
|
||||||
|
this.sharesCount = 0,
|
||||||
|
this.aspectRatio,
|
||||||
|
});
|
||||||
|
|
||||||
|
factory Post.fromJson(Map<String, dynamic> json) => _$PostFromJson(json);
|
||||||
|
Map<String, dynamic> toJson() => _$PostToJson(this);
|
||||||
|
}
|
||||||
35
lib/models/post.g.dart
Normal file
35
lib/models/post.g.dart
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'post.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
Post _$PostFromJson(Map<String, dynamic> json) => Post(
|
||||||
|
title: json['title'] as String,
|
||||||
|
content: json['content'] as String,
|
||||||
|
authorName: json['authorName'] as String,
|
||||||
|
authorImageUrl: json['authorImageUrl'] as String,
|
||||||
|
publishDate: DateTime.parse(json['publishDate'] as String),
|
||||||
|
imageUrls: (json['imageUrls'] as List<dynamic>?)
|
||||||
|
?.map((e) => e as String)
|
||||||
|
.toList(),
|
||||||
|
likesCount: (json['likesCount'] as num?)?.toInt() ?? 0,
|
||||||
|
commentsCount: (json['commentsCount'] as num?)?.toInt() ?? 0,
|
||||||
|
sharesCount: (json['sharesCount'] as num?)?.toInt() ?? 0,
|
||||||
|
aspectRatio: (json['aspectRatio'] as num?)?.toDouble(),
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> _$PostToJson(Post instance) => <String, dynamic>{
|
||||||
|
'title': instance.title,
|
||||||
|
'content': instance.content,
|
||||||
|
'authorName': instance.authorName,
|
||||||
|
'authorImageUrl': instance.authorImageUrl,
|
||||||
|
'publishDate': instance.publishDate.toIso8601String(),
|
||||||
|
'imageUrls': instance.imageUrls,
|
||||||
|
'likesCount': instance.likesCount,
|
||||||
|
'commentsCount': instance.commentsCount,
|
||||||
|
'sharesCount': instance.sharesCount,
|
||||||
|
'aspectRatio': instance.aspectRatio,
|
||||||
|
};
|
||||||
@@ -10,10 +10,10 @@ class NoticeSheet extends StackedView<NoticeSheetModel> {
|
|||||||
final Function(SheetResponse)? completer;
|
final Function(SheetResponse)? completer;
|
||||||
final SheetRequest request;
|
final SheetRequest request;
|
||||||
const NoticeSheet({
|
const NoticeSheet({
|
||||||
Key? key,
|
super.key,
|
||||||
required this.completer,
|
required this.completer,
|
||||||
required this.request,
|
required this.request,
|
||||||
}) : super(key: key);
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget builder(
|
Widget builder(
|
||||||
|
|||||||
@@ -5,13 +5,12 @@ import 'package:flutter/material.dart';
|
|||||||
class ReadMoreText extends StatefulWidget {
|
class ReadMoreText extends StatefulWidget {
|
||||||
const ReadMoreText(
|
const ReadMoreText(
|
||||||
this.text, {
|
this.text, {
|
||||||
Key? key,
|
super.key,
|
||||||
this.trimLines = 2,
|
this.trimLines = 2,
|
||||||
this.collapsedText = '... read more',
|
this.collapsedText = '... read more',
|
||||||
this.expandedText = ' read less',
|
this.expandedText = ' read less',
|
||||||
this.textStyle,
|
this.textStyle,
|
||||||
}) : assert(text != null),
|
}) : assert(text != null);
|
||||||
super(key: key);
|
|
||||||
|
|
||||||
final String text;
|
final String text;
|
||||||
final int trimLines;
|
final int trimLines;
|
||||||
@@ -69,7 +68,7 @@ class ReadMoreTextState extends State<ReadMoreText> {
|
|||||||
textSize.height,
|
textSize.height,
|
||||||
));
|
));
|
||||||
endIndex = textPainter.getOffsetBefore(pos.offset);
|
endIndex = textPainter.getOffsetBefore(pos.offset);
|
||||||
var textSpan;
|
TextSpan textSpan;
|
||||||
if (textPainter.didExceedMaxLines) {
|
if (textPainter.didExceedMaxLines) {
|
||||||
textSpan = TextSpan(
|
textSpan = TextSpan(
|
||||||
text: _readMore
|
text: _readMore
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class AnimatorWidget extends StatefulWidget {
|
|||||||
final double? aspectRatio; // Nouveau paramètre pour le ratio (largeur/hauteur)
|
final double? aspectRatio; // Nouveau paramètre pour le ratio (largeur/hauteur)
|
||||||
|
|
||||||
const AnimatorWidget({
|
const AnimatorWidget({
|
||||||
Key? key,
|
super.key,
|
||||||
required this.authorName,
|
required this.authorName,
|
||||||
required this.authorImageUrl,
|
required this.authorImageUrl,
|
||||||
this.publishDate,
|
this.publishDate,
|
||||||
@@ -26,7 +26,7 @@ class AnimatorWidget extends StatefulWidget {
|
|||||||
this.onComment,
|
this.onComment,
|
||||||
this.onShare,
|
this.onShare,
|
||||||
this.aspectRatio, // null = ratio naturel de l'image, ex: 16/9, 4/3, 1/1
|
this.aspectRatio, // null = ratio naturel de l'image, ex: 16/9, 4/3, 1/1
|
||||||
}) : super(key: key);
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<AnimatorWidget> createState() => _AnimatorWidgetWidgetState();
|
State<AnimatorWidget> createState() => _AnimatorWidgetWidgetState();
|
||||||
|
|||||||
161
lib/ui/common/comment_card_widget.dart
Normal file
161
lib/ui/common/comment_card_widget.dart
Normal file
@@ -0,0 +1,161 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class CommentCardWidget extends StatelessWidget {
|
||||||
|
final String comment;
|
||||||
|
final String authorName;
|
||||||
|
final String authorImageUrl;
|
||||||
|
final DateTime publishDate;
|
||||||
|
final int likesCount;
|
||||||
|
final int otherRepliesCount;
|
||||||
|
final bool isLiked;
|
||||||
|
final VoidCallback? onLike;
|
||||||
|
final VoidCallback? onReply;
|
||||||
|
final VoidCallback? onViewOtherReplies;
|
||||||
|
|
||||||
|
const CommentCardWidget({
|
||||||
|
super.key,
|
||||||
|
required this.comment,
|
||||||
|
required this.authorName,
|
||||||
|
required this.authorImageUrl,
|
||||||
|
required this.publishDate,
|
||||||
|
this.likesCount = 0,
|
||||||
|
this.otherRepliesCount = 0,
|
||||||
|
this.isLiked = false,
|
||||||
|
this.onLike,
|
||||||
|
this.onReply,
|
||||||
|
this.onViewOtherReplies,
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 12.0),
|
||||||
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
CircleAvatar(
|
||||||
|
radius: 18,
|
||||||
|
backgroundImage:
|
||||||
|
authorImageUrl.isNotEmpty ? NetworkImage(authorImageUrl) : null,
|
||||||
|
onBackgroundImageError: (_, __) {},
|
||||||
|
child: authorImageUrl.isEmpty
|
||||||
|
? const Icon(Icons.person, size: 18)
|
||||||
|
: null,
|
||||||
|
),
|
||||||
|
const SizedBox(width: 10),
|
||||||
|
Expanded(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Flexible(
|
||||||
|
child: Text(
|
||||||
|
_firstName(authorName),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
style:
|
||||||
|
Theme.of(context).textTheme.titleMedium?.copyWith(
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
Text(
|
||||||
|
_formatDate(publishDate),
|
||||||
|
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
||||||
|
color: Colors.grey,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(height: 6),
|
||||||
|
Text(
|
||||||
|
comment,
|
||||||
|
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||||
|
color: Colors.white,
|
||||||
|
height: 1.35,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 6),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
TextButton.icon(
|
||||||
|
onPressed: onLike,
|
||||||
|
style: TextButton.styleFrom(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||||
|
minimumSize: const Size(0, 32),
|
||||||
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
|
),
|
||||||
|
icon: Icon(
|
||||||
|
isLiked ? Icons.favorite : Icons.favorite_outline,
|
||||||
|
size: 18,
|
||||||
|
color: isLiked ? Colors.redAccent : Colors.grey,
|
||||||
|
),
|
||||||
|
label: Text(
|
||||||
|
likesCount > 0 ? '$likesCount' : 'Like',
|
||||||
|
style: const TextStyle(color: Colors.grey),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 4),
|
||||||
|
TextButton(
|
||||||
|
onPressed: onReply,
|
||||||
|
style: TextButton.styleFrom(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||||
|
minimumSize: const Size(0, 32),
|
||||||
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
|
'Répondre',
|
||||||
|
style: TextStyle(color: Colors.grey),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
if (otherRepliesCount > 0)
|
||||||
|
TextButton(
|
||||||
|
onPressed: onViewOtherReplies,
|
||||||
|
style: TextButton.styleFrom(
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
|
minimumSize: const Size(0, 28),
|
||||||
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
'Voir $otherRepliesCount autres réponses',
|
||||||
|
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
||||||
|
color: Colors.blueGrey[200],
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
String _firstName(String fullName) {
|
||||||
|
final trimmed = fullName.trim();
|
||||||
|
if (trimmed.isEmpty) return '';
|
||||||
|
return trimmed.split(RegExp(r'\s+')).first;
|
||||||
|
}
|
||||||
|
|
||||||
|
String _formatDate(DateTime date) {
|
||||||
|
final now = DateTime.now();
|
||||||
|
final difference = now.difference(date);
|
||||||
|
|
||||||
|
if (difference.inDays > 7) {
|
||||||
|
return '${date.day}/${date.month}/${date.year}';
|
||||||
|
} else if (difference.inDays > 0) {
|
||||||
|
return '${difference.inDays} jour${difference.inDays > 1 ? 's' : ''}';
|
||||||
|
} else if (difference.inHours > 0) {
|
||||||
|
return '${difference.inHours}h';
|
||||||
|
} else if (difference.inMinutes > 0) {
|
||||||
|
return '${difference.inMinutes}min';
|
||||||
|
} else {
|
||||||
|
return 'À l\'instant';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -15,7 +15,7 @@ class PostCardWidget extends StatelessWidget {
|
|||||||
final VoidCallback? onShare;
|
final VoidCallback? onShare;
|
||||||
|
|
||||||
const PostCardWidget({
|
const PostCardWidget({
|
||||||
Key? key,
|
super.key,
|
||||||
required this.title,
|
required this.title,
|
||||||
required this.content,
|
required this.content,
|
||||||
required this.authorName,
|
required this.authorName,
|
||||||
@@ -28,7 +28,7 @@ class PostCardWidget extends StatelessWidget {
|
|||||||
this.onLike,
|
this.onLike,
|
||||||
this.onComment,
|
this.onComment,
|
||||||
this.onShare,
|
this.onShare,
|
||||||
}) : super(key: key);
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@@ -109,7 +109,7 @@ class PostCardWidget extends StatelessWidget {
|
|||||||
|
|
||||||
// Images avec boutons d'action si présentes
|
// Images avec boutons d'action si présentes
|
||||||
if (imageUrls != null && imageUrls!.isNotEmpty)
|
if (imageUrls != null && imageUrls!.isNotEmpty)
|
||||||
Container(
|
SizedBox(
|
||||||
//margin: const EdgeInsets.symmetric(vertical: 12.0),
|
//margin: const EdgeInsets.symmetric(vertical: 12.0),
|
||||||
height: 200,
|
height: 200,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class PostCardWidget extends StatefulWidget {
|
|||||||
final double? aspectRatio; // Nouveau paramètre pour le ratio (largeur/hauteur)
|
final double? aspectRatio; // Nouveau paramètre pour le ratio (largeur/hauteur)
|
||||||
|
|
||||||
const PostCardWidget({
|
const PostCardWidget({
|
||||||
Key? key,
|
super.key,
|
||||||
required this.title,
|
required this.title,
|
||||||
required this.content,
|
required this.content,
|
||||||
required this.authorName,
|
required this.authorName,
|
||||||
@@ -32,7 +32,7 @@ class PostCardWidget extends StatefulWidget {
|
|||||||
this.onComment,
|
this.onComment,
|
||||||
this.onShare,
|
this.onShare,
|
||||||
this.aspectRatio, // null = ratio naturel de l'image, ex: 16/9, 4/3, 1/1
|
this.aspectRatio, // null = ratio naturel de l'image, ex: 16/9, 4/3, 1/1
|
||||||
}) : super(key: key);
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<PostCardWidget> createState() => _PostCardWidgetState();
|
State<PostCardWidget> createState() => _PostCardWidgetState();
|
||||||
@@ -129,7 +129,7 @@ class _PostCardWidgetState extends State<PostCardWidget> {
|
|||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
final imageHeight = snapshot.data ?? 200.0; // Hauteur par défaut si pas encore calculée
|
final imageHeight = snapshot.data ?? 200.0; // Hauteur par défaut si pas encore calculée
|
||||||
|
|
||||||
return Container(
|
return SizedBox(
|
||||||
height: imageHeight,
|
height: imageHeight,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
@@ -230,11 +230,36 @@ class _PostCardWidgetState extends State<PostCardWidget> {
|
|||||||
void showCommentSheet() {
|
void showCommentSheet() {
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
|
isScrollControlled: true,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return Container(
|
return FractionallySizedBox(
|
||||||
height: 1000,
|
heightFactor: 0.9,
|
||||||
|
child: Container(
|
||||||
|
padding: const EdgeInsets.all(16.0),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
width: 40,
|
||||||
|
height: 4,
|
||||||
|
margin: const EdgeInsets.only(bottom: 16.0),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.grey[300],
|
||||||
|
borderRadius: BorderRadius.circular(2),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text('Section des commentaires'),
|
child: Text(
|
||||||
|
'Section des commentaires (à implémenter)',
|
||||||
|
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
|
||||||
|
color: Colors.grey[600],
|
||||||
|
),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ class InfoAlertDialog extends StackedView<InfoAlertDialogModel> {
|
|||||||
final Function(DialogResponse) completer;
|
final Function(DialogResponse) completer;
|
||||||
|
|
||||||
const InfoAlertDialog({
|
const InfoAlertDialog({
|
||||||
Key? key,
|
super.key,
|
||||||
required this.request,
|
required this.request,
|
||||||
required this.completer,
|
required this.completer,
|
||||||
}) : super(key: key);
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget builder(
|
Widget builder(
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import 'package:bahla_front/ui/common/post_card_widget.dart';
|
|||||||
|
|
||||||
class EventDetailsView extends StackedView<EventDetailsViewModel> {
|
class EventDetailsView extends StackedView<EventDetailsViewModel> {
|
||||||
final int eventId;
|
final int eventId;
|
||||||
const EventDetailsView({Key? key, required this.eventId}) : super(key: key);
|
const EventDetailsView({super.key, required this.eventId});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget builder(
|
Widget builder(
|
||||||
@@ -32,7 +32,7 @@ class EventDetailsView extends StackedView<EventDetailsViewModel> {
|
|||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: MediaQuery.of(context).size.width * 9 / 16,
|
height: MediaQuery.of(context).size.width * 9 / 16,
|
||||||
child: const Image(
|
child: const Image(
|
||||||
@@ -56,7 +56,7 @@ class EventDetailsView extends StackedView<EventDetailsViewModel> {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
child: SizedBox(
|
||||||
width: MediaQuery.of(context).size.width * 0.8,
|
width: MediaQuery.of(context).size.width * 0.8,
|
||||||
child: Table(
|
child: Table(
|
||||||
columnWidths: const {
|
columnWidths: const {
|
||||||
@@ -153,7 +153,7 @@ class EventDetailsView extends StackedView<EventDetailsViewModel> {
|
|||||||
padding: const EdgeInsets.symmetric(vertical: 4.0),
|
padding: const EdgeInsets.symmetric(vertical: 4.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: Container(
|
child: SizedBox(
|
||||||
width: 40,
|
width: 40,
|
||||||
height: 40,
|
height: 40,
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
|
|||||||
@@ -21,28 +21,3 @@ class EventDetailsViewModel extends BaseViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Post {
|
|
||||||
final String id;
|
|
||||||
final String title;
|
|
||||||
final String content;
|
|
||||||
|
|
||||||
Post({
|
|
||||||
required this.id,
|
|
||||||
required this.title,
|
|
||||||
required this.content,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
class Animator {
|
|
||||||
final String id;
|
|
||||||
final String name;
|
|
||||||
final String content;
|
|
||||||
final String authorImageUrl = 'https://placehold.co/400x400/png';
|
|
||||||
|
|
||||||
Animator({
|
|
||||||
required this.id,
|
|
||||||
required this.name,
|
|
||||||
required this.content,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -5,7 +5,7 @@ import 'package:intl/intl.dart';
|
|||||||
import 'home_viewmodel.dart';
|
import 'home_viewmodel.dart';
|
||||||
|
|
||||||
class HomeView extends StackedView<HomeViewModel> {
|
class HomeView extends StackedView<HomeViewModel> {
|
||||||
const HomeView({Key? key}) : super(key: key);
|
const HomeView({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget builder(
|
Widget builder(
|
||||||
@@ -14,7 +14,7 @@ class HomeView extends StackedView<HomeViewModel> {
|
|||||||
Widget? child,
|
Widget? child,
|
||||||
) {
|
) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: Theme.of(context).colorScheme.background,
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
body: ListView.builder(
|
body: ListView.builder(
|
||||||
itemCount: viewModel.events.length,
|
itemCount: viewModel.events.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import 'package:bahla_front/app/app.locator.dart';
|
|||||||
import 'package:bahla_front/app/app.router.dart';
|
import 'package:bahla_front/app/app.router.dart';
|
||||||
import 'package:stacked/stacked.dart';
|
import 'package:stacked/stacked.dart';
|
||||||
import 'package:stacked_services/stacked_services.dart';
|
import 'package:stacked_services/stacked_services.dart';
|
||||||
|
import '../../../models/event.dart';
|
||||||
|
|
||||||
class HomeViewModel extends BaseViewModel {
|
class HomeViewModel extends BaseViewModel {
|
||||||
final _navigationService = locator<NavigationService>();
|
final _navigationService = locator<NavigationService>();
|
||||||
@@ -45,25 +46,4 @@ class HomeViewModel extends BaseViewModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Event {
|
|
||||||
String name;
|
|
||||||
String picture;
|
|
||||||
String organizer = 'Organizer';
|
|
||||||
String? place;
|
|
||||||
DateTime? date;
|
|
||||||
bool isFavorite;
|
|
||||||
|
|
||||||
Event({
|
|
||||||
required this.name,
|
|
||||||
required this.picture,
|
|
||||||
required this.organizer,
|
|
||||||
this.date,
|
|
||||||
this.place,
|
|
||||||
this.isFavorite = false,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'Event{name: $name, picture: $picture}';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import 'package:flutter_svg/flutter_svg.dart';
|
|||||||
import 'main_viewmodel.dart';
|
import 'main_viewmodel.dart';
|
||||||
|
|
||||||
class MainView extends StackedView<MainViewModel> {
|
class MainView extends StackedView<MainViewModel> {
|
||||||
const MainView({Key? key}) : super(key: key);
|
const MainView({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget builder(
|
Widget builder(
|
||||||
@@ -30,7 +30,7 @@ class MainView extends StackedView<MainViewModel> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
centerTitle: false,
|
centerTitle: false,
|
||||||
backgroundColor: Theme.of(context).colorScheme.background,
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
shape: Border(
|
shape: Border(
|
||||||
bottom: BorderSide(
|
bottom: BorderSide(
|
||||||
color: Theme.of(context).colorScheme.outline,
|
color: Theme.of(context).colorScheme.outline,
|
||||||
@@ -38,10 +38,10 @@ class MainView extends StackedView<MainViewModel> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
backgroundColor: Theme.of(context).colorScheme.background,
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
bottomNavigationBar: BottomNavigationBar(
|
bottomNavigationBar: BottomNavigationBar(
|
||||||
type: BottomNavigationBarType.fixed,
|
type: BottomNavigationBarType.fixed,
|
||||||
backgroundColor: Theme.of(context).colorScheme.background,
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
currentIndex: viewModel.currentIndex,
|
currentIndex: viewModel.currentIndex,
|
||||||
onTap: viewModel.setIndex,
|
onTap: viewModel.setIndex,
|
||||||
showSelectedLabels: false,
|
showSelectedLabels: false,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import 'package:bahla_front/ui/common/ui_helpers.dart';
|
|||||||
import 'startup_viewmodel.dart';
|
import 'startup_viewmodel.dart';
|
||||||
|
|
||||||
class StartupView extends StackedView<StartupViewModel> {
|
class StartupView extends StackedView<StartupViewModel> {
|
||||||
const StartupView({Key? key}) : super(key: key);
|
const StartupView({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget builder(
|
Widget builder(
|
||||||
|
|||||||
18
pubspec.lock
18
pubspec.lock
@@ -337,13 +337,21 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.1"
|
version: "1.0.1"
|
||||||
json_annotation:
|
json_annotation:
|
||||||
dependency: transitive
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: json_annotation
|
name: json_annotation
|
||||||
sha256: cb09e7dac6210041fad964ed7fbee004f14258b4eca4040f72d1234062ace4c8
|
sha256: cb09e7dac6210041fad964ed7fbee004f14258b4eca4040f72d1234062ace4c8
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.11.0"
|
version: "4.11.0"
|
||||||
|
json_serializable:
|
||||||
|
dependency: "direct dev"
|
||||||
|
description:
|
||||||
|
name: json_serializable
|
||||||
|
sha256: "2c15e78e1cc6e62aadecf59f81566fd56829713d96a8c4177699e2b2e17f20db"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "6.13.2"
|
||||||
leak_tracker:
|
leak_tracker:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -629,6 +637,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.2.3"
|
version: "4.2.3"
|
||||||
|
source_helper:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: source_helper
|
||||||
|
sha256: "4227d54ceefd0bb8ca4c8fcb96e1719dc53f1ee1b6e2ca9d7a6069da160e4eae"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.3.12"
|
||||||
source_span:
|
source_span:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -13,18 +13,20 @@ dependencies:
|
|||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_svg: ^2.0.11
|
flutter_svg: ^2.0.11
|
||||||
google_fonts: ^8.1.0
|
google_fonts: ^8.1.0
|
||||||
http: ^1.2.2
|
http: ^1.6.0
|
||||||
intl: any
|
intl: any
|
||||||
|
json_annotation: ^4.11.0
|
||||||
stacked: ^3.4.0
|
stacked: ^3.4.0
|
||||||
stacked_services: ^1.1.0
|
stacked_services: ^1.1.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: ^2.4.5
|
build_runner: ^2.15.0
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_lints: ^6.0.0
|
flutter_lints: ^6.0.0
|
||||||
mockito: ^5.4.1
|
mockito: ^5.4.1
|
||||||
stacked_generator: ^2.0.3
|
stacked_generator: ^2.0.3
|
||||||
|
json_serializable: ^6.13.2
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Mocks generated by Mockito 5.4.4 from annotations
|
// Mocks generated by Mockito 5.4.6 from annotations
|
||||||
// in bahla_front/test/helpers/test_helpers.dart.
|
// in bahla_front/test/helpers/test_helpers.dart.
|
||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
@@ -19,10 +19,12 @@ import 'package:stacked_services/stacked_services.dart' as _i2;
|
|||||||
// ignore_for_file: deprecated_member_use_from_same_package
|
// ignore_for_file: deprecated_member_use_from_same_package
|
||||||
// ignore_for_file: implementation_imports
|
// ignore_for_file: implementation_imports
|
||||||
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
||||||
|
// ignore_for_file: must_be_immutable
|
||||||
// ignore_for_file: prefer_const_constructors
|
// ignore_for_file: prefer_const_constructors
|
||||||
// ignore_for_file: unnecessary_parenthesis
|
// ignore_for_file: unnecessary_parenthesis
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
// ignore_for_file: invalid_use_of_internal_member
|
||||||
|
|
||||||
/// A class which mocks [NavigationService].
|
/// A class which mocks [NavigationService].
|
||||||
///
|
///
|
||||||
@@ -95,7 +97,7 @@ class MockNavigationService extends _i1.Mock implements _i2.NavigationService {
|
|||||||
_i5.Future<T?>? navigateWithTransition<T>(
|
_i5.Future<T?>? navigateWithTransition<T>(
|
||||||
_i4.Widget? page, {
|
_i4.Widget? page, {
|
||||||
bool? opaque,
|
bool? opaque,
|
||||||
String? transition = r'',
|
String? transition = '',
|
||||||
Duration? duration,
|
Duration? duration,
|
||||||
bool? popGesture,
|
bool? popGesture,
|
||||||
int? id,
|
int? id,
|
||||||
@@ -131,7 +133,7 @@ class MockNavigationService extends _i1.Mock implements _i2.NavigationService {
|
|||||||
_i5.Future<T?>? replaceWithTransition<T>(
|
_i5.Future<T?>? replaceWithTransition<T>(
|
||||||
_i4.Widget? page, {
|
_i4.Widget? page, {
|
||||||
bool? opaque,
|
bool? opaque,
|
||||||
String? transition = r'',
|
String? transition = '',
|
||||||
Duration? duration,
|
Duration? duration,
|
||||||
bool? popGesture,
|
bool? popGesture,
|
||||||
int? id,
|
int? id,
|
||||||
@@ -404,7 +406,7 @@ class MockBottomSheetService extends _i1.Mock
|
|||||||
_i5.Future<_i2.SheetResponse<dynamic>?> showBottomSheet({
|
_i5.Future<_i2.SheetResponse<dynamic>?> showBottomSheet({
|
||||||
required String? title,
|
required String? title,
|
||||||
String? description,
|
String? description,
|
||||||
String? confirmButtonTitle = r'Ok',
|
String? confirmButtonTitle = 'Ok',
|
||||||
String? cancelButtonTitle,
|
String? cancelButtonTitle,
|
||||||
bool? enableDrag = true,
|
bool? enableDrag = true,
|
||||||
bool? barrierDismissible = true,
|
bool? barrierDismissible = true,
|
||||||
@@ -457,7 +459,7 @@ class MockBottomSheetService extends _i1.Mock
|
|||||||
double? elevation = 1.0,
|
double? elevation = 1.0,
|
||||||
bool? barrierDismissible = true,
|
bool? barrierDismissible = true,
|
||||||
bool? isScrollControlled = false,
|
bool? isScrollControlled = false,
|
||||||
String? barrierLabel = r'',
|
String? barrierLabel = '',
|
||||||
dynamic customData,
|
dynamic customData,
|
||||||
R? data,
|
R? data,
|
||||||
bool? enableDrag = true,
|
bool? enableDrag = true,
|
||||||
@@ -554,9 +556,11 @@ class MockDialogService extends _i1.Mock implements _i2.DialogService {
|
|||||||
String? description,
|
String? description,
|
||||||
String? cancelTitle,
|
String? cancelTitle,
|
||||||
_i6.Color? cancelTitleColor,
|
_i6.Color? cancelTitleColor,
|
||||||
String? buttonTitle = r'Ok',
|
String? buttonTitle = 'Ok',
|
||||||
_i6.Color? buttonTitleColor,
|
_i6.Color? buttonTitleColor,
|
||||||
bool? barrierDismissible = false,
|
bool? barrierDismissible = false,
|
||||||
|
_i4.RouteSettings? routeSettings,
|
||||||
|
_i4.GlobalKey<_i4.NavigatorState>? navigatorKey,
|
||||||
_i2.DialogPlatform? dialogPlatform,
|
_i2.DialogPlatform? dialogPlatform,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
@@ -571,6 +575,8 @@ class MockDialogService extends _i1.Mock implements _i2.DialogService {
|
|||||||
#buttonTitle: buttonTitle,
|
#buttonTitle: buttonTitle,
|
||||||
#buttonTitleColor: buttonTitleColor,
|
#buttonTitleColor: buttonTitleColor,
|
||||||
#barrierDismissible: barrierDismissible,
|
#barrierDismissible: barrierDismissible,
|
||||||
|
#routeSettings: routeSettings,
|
||||||
|
#navigatorKey: navigatorKey,
|
||||||
#dialogPlatform: dialogPlatform,
|
#dialogPlatform: dialogPlatform,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@@ -595,8 +601,11 @@ class MockDialogService extends _i1.Mock implements _i2.DialogService {
|
|||||||
bool? takesInput = false,
|
bool? takesInput = false,
|
||||||
_i6.Color? barrierColor = const _i6.Color(2315255808),
|
_i6.Color? barrierColor = const _i6.Color(2315255808),
|
||||||
bool? barrierDismissible = false,
|
bool? barrierDismissible = false,
|
||||||
String? barrierLabel = r'',
|
String? barrierLabel = '',
|
||||||
bool? useSafeArea = true,
|
bool? useSafeArea = true,
|
||||||
|
_i4.RouteSettings? routeSettings,
|
||||||
|
_i4.GlobalKey<_i4.NavigatorState>? navigatorKey,
|
||||||
|
_i4.RouteTransitionsBuilder? transitionBuilder,
|
||||||
dynamic customData,
|
dynamic customData,
|
||||||
R? data,
|
R? data,
|
||||||
}) =>
|
}) =>
|
||||||
@@ -621,6 +630,9 @@ class MockDialogService extends _i1.Mock implements _i2.DialogService {
|
|||||||
#barrierDismissible: barrierDismissible,
|
#barrierDismissible: barrierDismissible,
|
||||||
#barrierLabel: barrierLabel,
|
#barrierLabel: barrierLabel,
|
||||||
#useSafeArea: useSafeArea,
|
#useSafeArea: useSafeArea,
|
||||||
|
#routeSettings: routeSettings,
|
||||||
|
#navigatorKey: navigatorKey,
|
||||||
|
#transitionBuilder: transitionBuilder,
|
||||||
#customData: customData,
|
#customData: customData,
|
||||||
#data: data,
|
#data: data,
|
||||||
},
|
},
|
||||||
@@ -633,11 +645,12 @@ class MockDialogService extends _i1.Mock implements _i2.DialogService {
|
|||||||
_i5.Future<_i2.DialogResponse<dynamic>?> showConfirmationDialog({
|
_i5.Future<_i2.DialogResponse<dynamic>?> showConfirmationDialog({
|
||||||
String? title,
|
String? title,
|
||||||
String? description,
|
String? description,
|
||||||
String? cancelTitle = r'Cancel',
|
String? cancelTitle = 'Cancel',
|
||||||
_i6.Color? cancelTitleColor,
|
_i6.Color? cancelTitleColor,
|
||||||
String? confirmationTitle = r'Ok',
|
String? confirmationTitle = 'Ok',
|
||||||
_i6.Color? confirmationTitleColor,
|
_i6.Color? confirmationTitleColor,
|
||||||
bool? barrierDismissible = false,
|
bool? barrierDismissible = false,
|
||||||
|
_i4.RouteSettings? routeSettings,
|
||||||
_i2.DialogPlatform? dialogPlatform,
|
_i2.DialogPlatform? dialogPlatform,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
@@ -652,6 +665,7 @@ class MockDialogService extends _i1.Mock implements _i2.DialogService {
|
|||||||
#confirmationTitle: confirmationTitle,
|
#confirmationTitle: confirmationTitle,
|
||||||
#confirmationTitleColor: confirmationTitleColor,
|
#confirmationTitleColor: confirmationTitleColor,
|
||||||
#barrierDismissible: barrierDismissible,
|
#barrierDismissible: barrierDismissible,
|
||||||
|
#routeSettings: routeSettings,
|
||||||
#dialogPlatform: dialogPlatform,
|
#dialogPlatform: dialogPlatform,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user