├── example ├── linux │ ├── .gitignore │ ├── runner │ │ ├── main.cc │ │ ├── my_application.h │ │ └── CMakeLists.txt │ └── flutter │ │ ├── generated_plugin_registrant.cc │ │ ├── generated_plugin_registrant.h │ │ ├── generated_plugins.cmake │ │ └── CMakeLists.txt ├── android │ ├── app │ │ ├── .cxx │ │ │ └── Debug │ │ │ │ └── 5u6vp6g6 │ │ │ │ ├── x86 │ │ │ │ ├── additional_project_files.txt │ │ │ │ ├── .cmake │ │ │ │ │ └── api │ │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── query │ │ │ │ │ │ └── client-agp │ │ │ │ │ │ │ ├── cache-v2 │ │ │ │ │ │ │ ├── cmakeFiles-v1 │ │ │ │ │ │ │ └── codemodel-v2 │ │ │ │ │ │ └── reply │ │ │ │ │ │ ├── directory-.-Debug-f5ebdc15457944623624.json │ │ │ │ │ │ ├── codemodel-v2-e5f0f406248fabe44b4f.json │ │ │ │ │ │ └── index-2025-04-16T23-36-08-0654.json │ │ │ │ ├── prefab_config.json │ │ │ │ ├── build_file_index.txt │ │ │ │ ├── CMakeFiles │ │ │ │ │ ├── cmake.check_cache │ │ │ │ │ ├── 3.22.1-g37088a8 │ │ │ │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ │ │ │ ├── CompilerIdC │ │ │ │ │ │ │ └── CMakeCCompilerId.o │ │ │ │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ │ │ │ ├── CompilerIdCXX │ │ │ │ │ │ │ └── CMakeCXXCompilerId.o │ │ │ │ │ │ ├── CMakeSystem.cmake │ │ │ │ │ │ └── CMakeCCompiler.cmake │ │ │ │ │ ├── TargetDirectories.txt │ │ │ │ │ └── rules.ninja │ │ │ │ ├── symbol_folder_index.txt │ │ │ │ ├── configure_fingerprint.bin │ │ │ │ ├── android_gradle_build_mini.json │ │ │ │ ├── android_gradle_build.json │ │ │ │ ├── metadata_generation_command.txt │ │ │ │ └── cmake_install.cmake │ │ │ │ ├── arm64-v8a │ │ │ │ ├── additional_project_files.txt │ │ │ │ ├── .cmake │ │ │ │ │ └── api │ │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── query │ │ │ │ │ │ └── client-agp │ │ │ │ │ │ │ ├── cache-v2 │ │ │ │ │ │ │ ├── codemodel-v2 │ │ │ │ │ │ │ └── cmakeFiles-v1 │ │ │ │ │ │ └── reply │ │ │ │ │ │ ├── directory-.-Debug-f5ebdc15457944623624.json │ │ │ │ │ │ ├── codemodel-v2-8612834c56ab60cb8bf8.json │ │ │ │ │ │ └── index-2025-04-16T23-35-16-0753.json │ │ │ │ ├── prefab_config.json │ │ │ │ ├── CMakeFiles │ │ │ │ │ ├── cmake.check_cache │ │ │ │ │ ├── 3.22.1-g37088a8 │ │ │ │ │ │ ├── CompilerIdC │ │ │ │ │ │ │ └── CMakeCCompilerId.o │ │ │ │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ │ │ │ ├── CompilerIdCXX │ │ │ │ │ │ │ └── CMakeCXXCompilerId.o │ │ │ │ │ │ ├── CMakeSystem.cmake │ │ │ │ │ │ └── CMakeCCompiler.cmake │ │ │ │ │ ├── TargetDirectories.txt │ │ │ │ │ └── rules.ninja │ │ │ │ ├── build_file_index.txt │ │ │ │ ├── symbol_folder_index.txt │ │ │ │ ├── configure_fingerprint.bin │ │ │ │ ├── android_gradle_build_mini.json │ │ │ │ ├── android_gradle_build.json │ │ │ │ ├── metadata_generation_command.txt │ │ │ │ └── cmake_install.cmake │ │ │ │ ├── x86_64 │ │ │ │ ├── additional_project_files.txt │ │ │ │ ├── .cmake │ │ │ │ │ └── api │ │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── query │ │ │ │ │ │ └── client-agp │ │ │ │ │ │ │ ├── cache-v2 │ │ │ │ │ │ │ ├── cmakeFiles-v1 │ │ │ │ │ │ │ └── codemodel-v2 │ │ │ │ │ │ └── reply │ │ │ │ │ │ ├── directory-.-Debug-f5ebdc15457944623624.json │ │ │ │ │ │ ├── codemodel-v2-da80898f6e5de7305dde.json │ │ │ │ │ │ └── index-2025-04-16T23-36-10-0821.json │ │ │ │ ├── prefab_config.json │ │ │ │ ├── build_file_index.txt │ │ │ │ ├── CMakeFiles │ │ │ │ │ ├── cmake.check_cache │ │ │ │ │ ├── 3.22.1-g37088a8 │ │ │ │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ │ │ │ ├── CompilerIdC │ │ │ │ │ │ │ └── CMakeCCompilerId.o │ │ │ │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ │ │ │ ├── CompilerIdCXX │ │ │ │ │ │ │ └── CMakeCXXCompilerId.o │ │ │ │ │ │ ├── CMakeSystem.cmake │ │ │ │ │ │ └── CMakeCCompiler.cmake │ │ │ │ │ ├── TargetDirectories.txt │ │ │ │ │ └── rules.ninja │ │ │ │ ├── symbol_folder_index.txt │ │ │ │ ├── configure_fingerprint.bin │ │ │ │ ├── android_gradle_build_mini.json │ │ │ │ ├── android_gradle_build.json │ │ │ │ ├── metadata_generation_command.txt │ │ │ │ └── cmake_install.cmake │ │ │ │ ├── armeabi-v7a │ │ │ │ ├── additional_project_files.txt │ │ │ │ ├── .cmake │ │ │ │ │ └── api │ │ │ │ │ │ └── v1 │ │ │ │ │ │ ├── query │ │ │ │ │ │ └── client-agp │ │ │ │ │ │ │ ├── cache-v2 │ │ │ │ │ │ │ ├── cmakeFiles-v1 │ │ │ │ │ │ │ └── codemodel-v2 │ │ │ │ │ │ └── reply │ │ │ │ │ │ ├── directory-.-Debug-f5ebdc15457944623624.json │ │ │ │ │ │ ├── codemodel-v2-8380275420085a821b42.json │ │ │ │ │ │ └── index-2025-04-16T23-35-52-0676.json │ │ │ │ ├── prefab_config.json │ │ │ │ ├── build_file_index.txt │ │ │ │ ├── CMakeFiles │ │ │ │ │ ├── cmake.check_cache │ │ │ │ │ ├── 3.22.1-g37088a8 │ │ │ │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ │ │ │ ├── CompilerIdC │ │ │ │ │ │ │ └── CMakeCCompilerId.o │ │ │ │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ │ │ │ ├── CompilerIdCXX │ │ │ │ │ │ │ └── CMakeCXXCompilerId.o │ │ │ │ │ │ ├── CMakeSystem.cmake │ │ │ │ │ │ └── CMakeCCompiler.cmake │ │ │ │ │ ├── TargetDirectories.txt │ │ │ │ │ └── rules.ninja │ │ │ │ ├── symbol_folder_index.txt │ │ │ │ ├── configure_fingerprint.bin │ │ │ │ ├── android_gradle_build_mini.json │ │ │ │ ├── android_gradle_build.json │ │ │ │ ├── metadata_generation_command.txt │ │ │ │ └── cmake_install.cmake │ │ │ │ └── hash_key.txt │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── 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 │ │ │ │ │ ├── drawable │ │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── drawable-v21 │ │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── values │ │ │ │ │ │ └── styles.xml │ │ │ │ │ └── values-night │ │ │ │ │ │ └── styles.xml │ │ │ │ ├── kotlin │ │ │ │ │ └── com │ │ │ │ │ │ └── example │ │ │ │ │ │ └── example │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ └── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── .gitignore │ ├── build.gradle │ └── settings.gradle ├── ios │ ├── Runner │ │ ├── Runner-Bridging-Header.h │ │ ├── Assets.xcassets │ │ │ ├── LaunchImage.imageset │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ ├── README.md │ │ │ │ └── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ ├── 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-1024x1024@1x.png │ │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ │ └── Contents.json │ │ ├── AppDelegate.swift │ │ ├── Base.lproj │ │ │ ├── Main.storyboard │ │ │ └── LaunchScreen.storyboard │ │ └── Info.plist │ ├── Flutter │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── AppFrameworkInfo.plist │ ├── Runner.xcodeproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── Podfile.lock │ ├── RunnerTests │ │ └── RunnerTests.swift │ ├── .gitignore │ └── Podfile ├── web │ ├── favicon.png │ ├── icons │ │ ├── Icon-192.png │ │ ├── Icon-512.png │ │ ├── Icon-maskable-192.png │ │ └── Icon-maskable-512.png │ ├── manifest.json │ └── index.html ├── macos │ ├── Runner │ │ ├── Configs │ │ │ ├── Debug.xcconfig │ │ │ ├── Release.xcconfig │ │ │ ├── Warnings.xcconfig │ │ │ └── AppInfo.xcconfig │ │ ├── Assets.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ ├── app_icon_128.png │ │ │ │ ├── app_icon_16.png │ │ │ │ ├── app_icon_256.png │ │ │ │ ├── app_icon_32.png │ │ │ │ ├── app_icon_512.png │ │ │ │ ├── app_icon_64.png │ │ │ │ ├── app_icon_1024.png │ │ │ │ └── Contents.json │ │ ├── Release.entitlements │ │ ├── AppDelegate.swift │ │ ├── DebugProfile.entitlements │ │ ├── MainFlutterWindow.swift │ │ └── Info.plist │ ├── .gitignore │ ├── Flutter │ │ ├── Flutter-Debug.xcconfig │ │ ├── Flutter-Release.xcconfig │ │ └── GeneratedPluginRegistrant.swift │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── Runner.xcodeproj │ │ ├── project.xcworkspace │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── RunnerTests │ │ └── RunnerTests.swift │ └── Podfile ├── windows │ ├── runner │ │ ├── resources │ │ │ └── app_icon.ico │ │ ├── resource.h │ │ ├── runner.exe.manifest │ │ ├── utils.h │ │ ├── flutter_window.h │ │ ├── main.cpp │ │ ├── CMakeLists.txt │ │ ├── utils.cpp │ │ ├── flutter_window.cpp │ │ ├── Runner.rc │ │ └── win32_window.h │ ├── flutter │ │ ├── generated_plugin_registrant.cc │ │ ├── generated_plugin_registrant.h │ │ ├── generated_plugins.cmake │ │ └── CMakeLists.txt │ ├── .gitignore │ └── CMakeLists.txt ├── README.md ├── .gitignore ├── test │ └── widget_test.dart ├── analysis_options.yaml ├── pubspec.yaml └── .metadata ├── analysis_options.yaml ├── .metadata ├── test └── local_hero_transform_test.dart ├── lib ├── local_hero_transform.dart └── src │ ├── utils.dart │ ├── card_style_mode.dart │ ├── items_model.dart │ ├── local_hero_views.dart │ ├── card_grid_view.dart │ ├── loading_card.dart │ └── shimmer.dart ├── pubspec.yaml ├── .gitignore ├── LICENSE └── CHANGELOG.md /example/linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/additional_project_files.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/additional_project_files.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/additional_project_files.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/additional_project_files.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/.cmake/api/v1/query/client-agp/cache-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/.cmake/api/v1/query/client-agp/cmakeFiles-v1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/.cmake/api/v1/query/client-agp/codemodel-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/.cmake/api/v1/query/client-agp/cache-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/.cmake/api/v1/query/client-agp/cache-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/.cmake/api/v1/query/client-agp/codemodel-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/.cmake/api/v1/query/client-agp/cache-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/.cmake/api/v1/query/client-agp/cmakeFiles-v1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/.cmake/api/v1/query/client-agp/codemodel-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/.cmake/api/v1/query/client-agp/cmakeFiles-v1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/.cmake/api/v1/query/client-agp/cmakeFiles-v1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/.cmake/api/v1/query/client-agp/codemodel-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/prefab_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "enabled": false, 3 | "packages": [] 4 | } -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/prefab_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "enabled": false, 3 | "packages": [] 4 | } -------------------------------------------------------------------------------- /example/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/web/favicon.png -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/prefab_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "enabled": false, 3 | "packages": [] 4 | } -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/prefab_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "enabled": false, 3 | "packages": [] 4 | } -------------------------------------------------------------------------------- /example/macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /example/web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/web/icons/Icon-192.png -------------------------------------------------------------------------------- /example/web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/web/icons/Icon-512.png -------------------------------------------------------------------------------- /example/macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /example/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /example/web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /example/web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/build_file_index.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt -------------------------------------------------------------------------------- /example/windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/symbol_folder_index.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/x86 -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/build_file_index.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/build_file_index.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/build_file_index.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/symbol_folder_index.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/x86_64 -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/symbol_folder_index.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/arm64-v8a -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/symbol_folder_index.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/armeabi-v7a -------------------------------------------------------------------------------- /example/macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /example/macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/configure_fingerprint.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/x86/configure_fingerprint.bin -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/configure_fingerprint.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/x86_64/configure_fingerprint.bin -------------------------------------------------------------------------------- /example/android/app/src/main/kotlin/com/example/example/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.example 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() 6 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/configure_fingerprint.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/configure_fingerprint.bin -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/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/najeebaslan/local_hero_transform/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/configure_fingerprint.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/configure_fingerprint.bin -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/linux/runner/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | 9 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 10 | } 11 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o -------------------------------------------------------------------------------- /example/linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | 10 | void fl_register_plugins(FlPluginRegistry* registry) { 11 | } 12 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip 6 | -------------------------------------------------------------------------------- /example/windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | 10 | void RegisterPlugins(flutter::PluginRegistry* registry) { 11 | } 12 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/najeebaslan/local_hero_transform/HEAD/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/edit_cache.dir 2 | /Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/rebuild_cache.dir 3 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/edit_cache.dir 2 | /Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/rebuild_cache.dir 3 | -------------------------------------------------------------------------------- /example/macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/edit_cache.dir 2 | /Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/rebuild_cache.dir 3 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/edit_cache.dir 2 | /Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/rebuild_cache.dir 3 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json: -------------------------------------------------------------------------------- 1 | { 2 | "backtraceGraph" : 3 | { 4 | "commands" : [], 5 | "files" : [], 6 | "nodes" : [] 7 | }, 8 | "installers" : [], 9 | "paths" : 10 | { 11 | "build" : ".", 12 | "source" : "." 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json: -------------------------------------------------------------------------------- 1 | { 2 | "backtraceGraph" : 3 | { 4 | "commands" : [], 5 | "files" : [], 6 | "nodes" : [] 7 | }, 8 | "installers" : [], 9 | "paths" : 10 | { 11 | "build" : ".", 12 | "source" : "." 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json: -------------------------------------------------------------------------------- 1 | { 2 | "backtraceGraph" : 3 | { 4 | "commands" : [], 5 | "files" : [], 6 | "nodes" : [] 7 | }, 8 | "installers" : [], 9 | "paths" : 10 | { 11 | "build" : ".", 12 | "source" : "." 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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/to/reference-keystore 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json: -------------------------------------------------------------------------------- 1 | { 2 | "backtraceGraph" : 3 | { 4 | "commands" : [], 5 | "files" : [], 6 | "nodes" : [] 7 | }, 8 | "installers" : [], 9 | "paths" : 10 | { 11 | "build" : ".", 12 | "source" : "." 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /example/macos/Runner.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/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.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: "8495dee1fd4aacbe9de707e7581203232f591b2f" 8 | channel: "stable" 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - Flutter (from `Flutter`) 6 | 7 | EXTERNAL SOURCES: 8 | Flutter: 9 | :path: Flutter 10 | 11 | SPEC CHECKSUMS: 12 | Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 13 | 14 | PODFILE CHECKSUM: 7be2f5f74864d463a8ad433546ed1de7e0f29aef 15 | 16 | COCOAPODS: 1.16.2 17 | -------------------------------------------------------------------------------- /test/local_hero_transform_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_test/flutter_test.dart'; 2 | 3 | void main() { 4 | test('adds one to input values', () { 5 | // final calculator = local_hero_transform(); 6 | // expect(calculator.addOne(2), 3); 7 | // expect(calculator.addOne(-7), -6); 8 | // expect(calculator.addOne(0), 1); 9 | }); 10 | } 11 | -------------------------------------------------------------------------------- /example/ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /example/macos/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /example/windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /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/macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @main 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | 10 | override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { 11 | return true 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /example/linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /example/windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | } 7 | 8 | rootProject.buildDir = "../build" 9 | subprojects { 10 | project.buildDir = "${rootProject.buildDir}/${project.name}" 11 | } 12 | subprojects { 13 | project.evaluationDependsOn(":app") 14 | } 15 | 16 | tasks.register("clean", Delete) { 17 | delete rootProject.buildDir 18 | } 19 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /lib/local_hero_transform.dart: -------------------------------------------------------------------------------- 1 | /*File : local_hero_transform 2 | Version : 1.0.6 3 | */ 4 | library local_hero_transform; 5 | 6 | export 'src/base_hero_card.dart'; 7 | export 'src/card_grid_view.dart'; 8 | export 'src/card_list_view.dart'; 9 | export 'src/card_style_mode.dart'; 10 | export 'src/items_model.dart'; 11 | export 'src/loading_card.dart'; 12 | export 'src/local_hero.dart'; 13 | export 'src/local_hero_views.dart'; 14 | export 'src/shimmer.dart'; 15 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | 4 | @main 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/macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/linux/runner/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /example/windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /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/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /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/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Darwin-23.5.0") 2 | set(CMAKE_HOST_SYSTEM_NAME "Darwin") 3 | set(CMAKE_HOST_SYSTEM_VERSION "23.5.0") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "arm64") 5 | 6 | include("/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/build/cmake/android.toolchain.cmake") 7 | 8 | set(CMAKE_SYSTEM "Android-1") 9 | set(CMAKE_SYSTEM_NAME "Android") 10 | set(CMAKE_SYSTEM_VERSION "1") 11 | set(CMAKE_SYSTEM_PROCESSOR "i686") 12 | 13 | set(CMAKE_CROSSCOMPILING "TRUE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Darwin-23.5.0") 2 | set(CMAKE_HOST_SYSTEM_NAME "Darwin") 3 | set(CMAKE_HOST_SYSTEM_VERSION "23.5.0") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "arm64") 5 | 6 | include("/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/build/cmake/android.toolchain.cmake") 7 | 8 | set(CMAKE_SYSTEM "Android-1") 9 | set(CMAKE_SYSTEM_NAME "Android") 10 | set(CMAKE_SYSTEM_VERSION "1") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "TRUE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Darwin-23.5.0") 2 | set(CMAKE_HOST_SYSTEM_NAME "Darwin") 3 | set(CMAKE_HOST_SYSTEM_VERSION "23.5.0") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "arm64") 5 | 6 | include("/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/build/cmake/android.toolchain.cmake") 7 | 8 | set(CMAKE_SYSTEM "Android-1") 9 | set(CMAKE_SYSTEM_NAME "Android") 10 | set(CMAKE_SYSTEM_VERSION "1") 11 | set(CMAKE_SYSTEM_PROCESSOR "aarch64") 12 | 13 | set(CMAKE_CROSSCOMPILING "TRUE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Darwin-23.5.0") 2 | set(CMAKE_HOST_SYSTEM_NAME "Darwin") 3 | set(CMAKE_HOST_SYSTEM_VERSION "23.5.0") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "arm64") 5 | 6 | include("/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/build/cmake/android.toolchain.cmake") 7 | 8 | set(CMAKE_SYSTEM "Android-1") 9 | set(CMAKE_SYSTEM_NAME "Android") 10 | set(CMAKE_SYSTEM_VERSION "1") 11 | set(CMAKE_SYSTEM_PROCESSOR "armv7-a") 12 | 13 | set(CMAKE_CROSSCOMPILING "TRUE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: local_hero_transform 2 | description: "local hero transform is a Flutter package that simplifies seamless transitions between items in grid and list views using local hero animations, enhancing your app's visual appeal" 3 | version: 1.0.6 4 | homepage: https://github.com/najeebaslan/local_hero_transform.git 5 | environment: 6 | sdk: ^3.6.0 7 | flutter: ">=1.17.0" 8 | 9 | dependencies: 10 | flutter: 11 | sdk: flutter 12 | flutter_screenutil: ^5.9.3 13 | 14 | dev_dependencies: 15 | flutter_test: 16 | sdk: flutter 17 | flutter_lints: ^5.0.0 18 | 19 | 20 | 21 | 22 | flutter: 23 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # example 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /example/macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /example/macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = example 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /example/windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 26 | /pubspec.lock 27 | **/doc/api/ 28 | .dart_tool/ 29 | .flutter-plugins 30 | .flutter-plugins-dependencies 31 | build/ 32 | -------------------------------------------------------------------------------- /example/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/android_gradle_build_mini.json: -------------------------------------------------------------------------------- 1 | { 2 | "buildFiles": [ 3 | "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt" 4 | ], 5 | "cleanCommandsComponents": [ 6 | [ 7 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 8 | "-C", 9 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86", 10 | "clean" 11 | ] 12 | ], 13 | "buildTargetsCommandComponents": [ 14 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 15 | "-C", 16 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86", 17 | "{LIST_OF_TARGETS_TO_BUILD}" 18 | ], 19 | "libraries": {} 20 | } -------------------------------------------------------------------------------- /lib/src/utils.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_screenutil/flutter_screenutil.dart'; 3 | 4 | /// Signature for a callback when the favorite icon is pressed. 5 | typedef CustomOnPressedFavoriteIcon = void Function(int index); 6 | double paddingHorizontal = 10.w; 7 | double paddingVertical = 8.w; 8 | double paddingImageAll = 8.0.w; 9 | double imageHeightListView = 100 + paddingImageAll * 2; 10 | 11 | extension ContextExtension on BuildContext { 12 | bool get isTablet => MediaQuery.sizeOf(this).width >= 600.0; 13 | double get height => MediaQuery.sizeOf(this).height; 14 | double get width => MediaQuery.sizeOf(this).width; 15 | Size get designSize => isTablet ? const Size(481, 890) : const Size(428, 926); 16 | } 17 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/android_gradle_build_mini.json: -------------------------------------------------------------------------------- 1 | { 2 | "buildFiles": [ 3 | "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt" 4 | ], 5 | "cleanCommandsComponents": [ 6 | [ 7 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 8 | "-C", 9 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86_64", 10 | "clean" 11 | ] 12 | ], 13 | "buildTargetsCommandComponents": [ 14 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 15 | "-C", 16 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86_64", 17 | "{LIST_OF_TARGETS_TO_BUILD}" 18 | ], 19 | "libraries": {} 20 | } -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/android_gradle_build_mini.json: -------------------------------------------------------------------------------- 1 | { 2 | "buildFiles": [ 3 | "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt" 4 | ], 5 | "cleanCommandsComponents": [ 6 | [ 7 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 8 | "-C", 9 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a", 10 | "clean" 11 | ] 12 | ], 13 | "buildTargetsCommandComponents": [ 14 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 15 | "-C", 16 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a", 17 | "{LIST_OF_TARGETS_TO_BUILD}" 18 | ], 19 | "libraries": {} 20 | } -------------------------------------------------------------------------------- /example/windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/android_gradle_build_mini.json: -------------------------------------------------------------------------------- 1 | { 2 | "buildFiles": [ 3 | "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt" 4 | ], 5 | "cleanCommandsComponents": [ 6 | [ 7 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 8 | "-C", 9 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a", 10 | "clean" 11 | ] 12 | ], 13 | "buildTargetsCommandComponents": [ 14 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 15 | "-C", 16 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a", 17 | "{LIST_OF_TARGETS_TO_BUILD}" 18 | ], 19 | "libraries": {} 20 | } -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | }() 9 | 10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") 11 | 12 | repositories { 13 | google() 14 | mavenCentral() 15 | gradlePluginPortal() 16 | } 17 | } 18 | 19 | plugins { 20 | id "dev.flutter.flutter-plugin-loader" version "1.0.0" 21 | id "com.android.application" version "8.1.0" apply false 22 | id "org.jetbrains.kotlin.android" version "1.8.22" apply false 23 | } 24 | 25 | include ":app" 26 | -------------------------------------------------------------------------------- /example/linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | ) 7 | 8 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 9 | ) 10 | 11 | set(PLUGIN_BUNDLED_LIBRARIES) 12 | 13 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 14 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 15 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 16 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 18 | endforeach(plugin) 19 | 20 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 21 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 23 | endforeach(ffi_plugin) 24 | -------------------------------------------------------------------------------- /example/windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | ) 7 | 8 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 9 | ) 10 | 11 | set(PLUGIN_BUNDLED_LIBRARIES) 12 | 13 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 14 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 15 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 16 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 18 | endforeach(plugin) 19 | 20 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 21 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 23 | endforeach(ffi_plugin) 24 | -------------------------------------------------------------------------------- /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 | 12.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | **/doc/api/ 28 | **/ios/Flutter/.last_build_id 29 | .dart_tool/ 30 | .flutter-plugins 31 | .flutter-plugins-dependencies 32 | .pub-cache/ 33 | .pub/ 34 | /build/ 35 | 36 | # Symbolication related 37 | app.*.symbols 38 | 39 | # Obfuscation related 40 | app.*.map.json 41 | 42 | # Android Studio will place build artifacts here 43 | /android/app/debug 44 | /android/app/profile 45 | /android/app/release 46 | -------------------------------------------------------------------------------- /lib/src/card_style_mode.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CardStyleMode { 4 | final Color? cardColor; 5 | final Gradient? cardGradientColor; 6 | final Color? itemColor; 7 | final Color? animationShimmerColor; 8 | final bool? isLoading; 9 | final bool isDarkMode; 10 | 11 | CardStyleMode({ 12 | this.cardColor, 13 | this.cardGradientColor, 14 | this.isLoading, 15 | this.itemColor, 16 | this.isDarkMode = false, 17 | this.animationShimmerColor, 18 | }); 19 | 20 | static Color getCardColor(bool isDarkMode) { 21 | return isDarkMode ? Color.fromARGB(255, 36, 39, 92) : Colors.white; 22 | } 23 | 24 | static Color getItemBackgroundColor(bool isDarkMode) { 25 | return isDarkMode ? Color.fromARGB(255, 13, 13, 29) : const Color.fromARGB(255, 226, 226, 237); 26 | } 27 | 28 | static Color getAnimationShimmerColor(bool isDarkMode) { 29 | return isDarkMode ? Color.fromARGB(255, 36, 39, 92) : Colors.white; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/.cmake/api/v1/reply/codemodel-v2-e5f0f406248fabe44b4f.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations" : 3 | [ 4 | { 5 | "directories" : 6 | [ 7 | { 8 | "build" : ".", 9 | "jsonFile" : "directory-.-Debug-f5ebdc15457944623624.json", 10 | "minimumCMakeVersion" : 11 | { 12 | "string" : "3.6.0" 13 | }, 14 | "projectIndex" : 0, 15 | "source" : "." 16 | } 17 | ], 18 | "name" : "Debug", 19 | "projects" : 20 | [ 21 | { 22 | "directoryIndexes" : 23 | [ 24 | 0 25 | ], 26 | "name" : "Project" 27 | } 28 | ], 29 | "targets" : [] 30 | } 31 | ], 32 | "kind" : "codemodel", 33 | "paths" : 34 | { 35 | "build" : "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86", 36 | "source" : "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy" 37 | }, 38 | "version" : 39 | { 40 | "major" : 2, 41 | "minor" : 3 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/.cmake/api/v1/reply/codemodel-v2-da80898f6e5de7305dde.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations" : 3 | [ 4 | { 5 | "directories" : 6 | [ 7 | { 8 | "build" : ".", 9 | "jsonFile" : "directory-.-Debug-f5ebdc15457944623624.json", 10 | "minimumCMakeVersion" : 11 | { 12 | "string" : "3.6.0" 13 | }, 14 | "projectIndex" : 0, 15 | "source" : "." 16 | } 17 | ], 18 | "name" : "Debug", 19 | "projects" : 20 | [ 21 | { 22 | "directoryIndexes" : 23 | [ 24 | 0 25 | ], 26 | "name" : "Project" 27 | } 28 | ], 29 | "targets" : [] 30 | } 31 | ], 32 | "kind" : "codemodel", 33 | "paths" : 34 | { 35 | "build" : "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86_64", 36 | "source" : "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy" 37 | }, 38 | "version" : 39 | { 40 | "major" : 2, 41 | "minor" : 3 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/.cmake/api/v1/reply/codemodel-v2-8612834c56ab60cb8bf8.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations" : 3 | [ 4 | { 5 | "directories" : 6 | [ 7 | { 8 | "build" : ".", 9 | "jsonFile" : "directory-.-Debug-f5ebdc15457944623624.json", 10 | "minimumCMakeVersion" : 11 | { 12 | "string" : "3.6.0" 13 | }, 14 | "projectIndex" : 0, 15 | "source" : "." 16 | } 17 | ], 18 | "name" : "Debug", 19 | "projects" : 20 | [ 21 | { 22 | "directoryIndexes" : 23 | [ 24 | 0 25 | ], 26 | "name" : "Project" 27 | } 28 | ], 29 | "targets" : [] 30 | } 31 | ], 32 | "kind" : "codemodel", 33 | "paths" : 34 | { 35 | "build" : "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a", 36 | "source" : "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy" 37 | }, 38 | "version" : 39 | { 40 | "major" : 2, 41 | "minor" : 3 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/.cmake/api/v1/reply/codemodel-v2-8380275420085a821b42.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations" : 3 | [ 4 | { 5 | "directories" : 6 | [ 7 | { 8 | "build" : ".", 9 | "jsonFile" : "directory-.-Debug-f5ebdc15457944623624.json", 10 | "minimumCMakeVersion" : 11 | { 12 | "string" : "3.6.0" 13 | }, 14 | "projectIndex" : 0, 15 | "source" : "." 16 | } 17 | ], 18 | "name" : "Debug", 19 | "projects" : 20 | [ 21 | { 22 | "directoryIndexes" : 23 | [ 24 | 0 25 | ], 26 | "name" : "Project" 27 | } 28 | ], 29 | "targets" : [] 30 | } 31 | ], 32 | "kind" : "codemodel", 33 | "paths" : 34 | { 35 | "build" : "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a", 36 | "source" : "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy" 37 | }, 38 | "version" : 39 | { 40 | "major" : 2, 41 | "minor" : 3 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /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 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /example/windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/linux/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.13) 2 | project(runner LANGUAGES CXX) 3 | 4 | # Define the application target. To change its name, change BINARY_NAME in the 5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer 6 | # work. 7 | # 8 | # Any new source files that you add to the application should be added here. 9 | add_executable(${BINARY_NAME} 10 | "main.cc" 11 | "my_application.cc" 12 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 13 | ) 14 | 15 | # Apply the standard set of build settings. This can be removed for applications 16 | # that need different build settings. 17 | apply_standard_settings(${BINARY_NAME}) 18 | 19 | # Add preprocessor definitions for the application ID. 20 | add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") 21 | 22 | # Add dependency libraries. Add any application-specific dependencies here. 23 | target_link_libraries(${BINARY_NAME} PRIVATE flutter) 24 | target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) 25 | 26 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Najeeb Aslan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/android_gradle_build.json: -------------------------------------------------------------------------------- 1 | { 2 | "buildFiles": [ 3 | "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt" 4 | ], 5 | "cleanCommandsComponents": [ 6 | [ 7 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 8 | "-C", 9 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86", 10 | "clean" 11 | ] 12 | ], 13 | "buildTargetsCommandComponents": [ 14 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 15 | "-C", 16 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86", 17 | "{LIST_OF_TARGETS_TO_BUILD}" 18 | ], 19 | "libraries": {}, 20 | "toolchains": { 21 | "toolchain": { 22 | "cCompilerExecutable": "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang.lld", 23 | "cppCompilerExecutable": "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++.lld" 24 | } 25 | }, 26 | "cFileExtensions": [], 27 | "cppFileExtensions": [] 28 | } -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/android_gradle_build.json: -------------------------------------------------------------------------------- 1 | { 2 | "buildFiles": [ 3 | "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt" 4 | ], 5 | "cleanCommandsComponents": [ 6 | [ 7 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 8 | "-C", 9 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86_64", 10 | "clean" 11 | ] 12 | ], 13 | "buildTargetsCommandComponents": [ 14 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 15 | "-C", 16 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86_64", 17 | "{LIST_OF_TARGETS_TO_BUILD}" 18 | ], 19 | "libraries": {}, 20 | "toolchains": { 21 | "toolchain": { 22 | "cCompilerExecutable": "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang.lld", 23 | "cppCompilerExecutable": "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++.lld" 24 | } 25 | }, 26 | "cFileExtensions": [], 27 | "cppFileExtensions": [] 28 | } -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/android_gradle_build.json: -------------------------------------------------------------------------------- 1 | { 2 | "buildFiles": [ 3 | "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt" 4 | ], 5 | "cleanCommandsComponents": [ 6 | [ 7 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 8 | "-C", 9 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a", 10 | "clean" 11 | ] 12 | ], 13 | "buildTargetsCommandComponents": [ 14 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 15 | "-C", 16 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a", 17 | "{LIST_OF_TARGETS_TO_BUILD}" 18 | ], 19 | "libraries": {}, 20 | "toolchains": { 21 | "toolchain": { 22 | "cCompilerExecutable": "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang.lld", 23 | "cppCompilerExecutable": "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++.lld" 24 | } 25 | }, 26 | "cFileExtensions": [], 27 | "cppFileExtensions": [] 28 | } -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/android_gradle_build.json: -------------------------------------------------------------------------------- 1 | { 2 | "buildFiles": [ 3 | "/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt" 4 | ], 5 | "cleanCommandsComponents": [ 6 | [ 7 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 8 | "-C", 9 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a", 10 | "clean" 11 | ] 12 | ], 13 | "buildTargetsCommandComponents": [ 14 | "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja", 15 | "-C", 16 | "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a", 17 | "{LIST_OF_TARGETS_TO_BUILD}" 18 | ], 19 | "libraries": {}, 20 | "toolchains": { 21 | "toolchain": { 22 | "cCompilerExecutable": "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang.lld", 23 | "cppCompilerExecutable": "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++.lld" 24 | } 25 | }, 26 | "cFileExtensions": [], 27 | "cppFileExtensions": [] 28 | } -------------------------------------------------------------------------------- /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 in the flutter_test package. 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(const 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/android/app/.cxx/Debug/5u6vp6g6/x86/metadata_generation_command.txt: -------------------------------------------------------------------------------- 1 | -H/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy 2 | -DCMAKE_SYSTEM_NAME=Android 3 | -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 4 | -DCMAKE_SYSTEM_VERSION=21 5 | -DANDROID_PLATFORM=android-21 6 | -DANDROID_ABI=x86 7 | -DCMAKE_ANDROID_ARCH_ABI=x86 8 | -DANDROID_NDK=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264 9 | -DCMAKE_ANDROID_NDK=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264 10 | -DCMAKE_TOOLCHAIN_FILE=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/build/cmake/android.toolchain.cmake 11 | -DCMAKE_MAKE_PROGRAM=/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja 12 | -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/x86 13 | -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/x86 14 | -DCMAKE_BUILD_TYPE=Debug 15 | -B/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86 16 | -GNinja 17 | -Wno-dev 18 | --no-warn-unused-cli 19 | Build command args: [] 20 | Version: 2 -------------------------------------------------------------------------------- /example/macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/metadata_generation_command.txt: -------------------------------------------------------------------------------- 1 | -H/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy 2 | -DCMAKE_SYSTEM_NAME=Android 3 | -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 4 | -DCMAKE_SYSTEM_VERSION=21 5 | -DANDROID_PLATFORM=android-21 6 | -DANDROID_ABI=x86_64 7 | -DCMAKE_ANDROID_ARCH_ABI=x86_64 8 | -DANDROID_NDK=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264 9 | -DCMAKE_ANDROID_NDK=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264 10 | -DCMAKE_TOOLCHAIN_FILE=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/build/cmake/android.toolchain.cmake 11 | -DCMAKE_MAKE_PROGRAM=/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja 12 | -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/x86_64 13 | -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/x86_64 14 | -DCMAKE_BUILD_TYPE=Debug 15 | -B/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86_64 16 | -GNinja 17 | -Wno-dev 18 | --no-warn-unused-cli 19 | Build command args: [] 20 | Version: 2 -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/metadata_generation_command.txt: -------------------------------------------------------------------------------- 1 | -H/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy 2 | -DCMAKE_SYSTEM_NAME=Android 3 | -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 4 | -DCMAKE_SYSTEM_VERSION=21 5 | -DANDROID_PLATFORM=android-21 6 | -DANDROID_ABI=arm64-v8a 7 | -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a 8 | -DANDROID_NDK=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264 9 | -DCMAKE_ANDROID_NDK=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264 10 | -DCMAKE_TOOLCHAIN_FILE=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/build/cmake/android.toolchain.cmake 11 | -DCMAKE_MAKE_PROGRAM=/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja 12 | -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/arm64-v8a 13 | -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/arm64-v8a 14 | -DCMAKE_BUILD_TYPE=Debug 15 | -B/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a 16 | -GNinja 17 | -Wno-dev 18 | --no-warn-unused-cli 19 | Build command args: [] 20 | Version: 2 -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/metadata_generation_command.txt: -------------------------------------------------------------------------------- 1 | -H/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy 2 | -DCMAKE_SYSTEM_NAME=Android 3 | -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 4 | -DCMAKE_SYSTEM_VERSION=21 5 | -DANDROID_PLATFORM=android-21 6 | -DANDROID_ABI=armeabi-v7a 7 | -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a 8 | -DANDROID_NDK=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264 9 | -DCMAKE_ANDROID_NDK=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264 10 | -DCMAKE_TOOLCHAIN_FILE=/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/build/cmake/android.toolchain.cmake 11 | -DCMAKE_MAKE_PROGRAM=/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja 12 | -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/armeabi-v7a 13 | -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/5u6vp6g6/obj/armeabi-v7a 14 | -DCMAKE_BUILD_TYPE=Debug 15 | -B/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a 16 | -GNinja 17 | -Wno-dev 18 | --no-warn-unused-cli 19 | Build command args: [] 20 | Version: 2 -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/hash_key.txt: -------------------------------------------------------------------------------- 1 | # Values used to calculate the hash in this folder name. 2 | # Should not depend on the absolute path of the project itself. 3 | # - AGP: 8.1.0. 4 | # - $NDK is the path to NDK 26.3.11579264. 5 | # - $PROJECT is the path to the parent folder of the root Gradle build file. 6 | # - $ABI is the ABI to be built with. The specific value doesn't contribute to the value of the hash. 7 | # - $HASH is the hash value computed from this text. 8 | # - $CMAKE is the path to CMake 3.22.1. 9 | # - $NINJA is the path to Ninja. 10 | -H/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy 11 | -DCMAKE_SYSTEM_NAME=Android 12 | -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 13 | -DCMAKE_SYSTEM_VERSION=21 14 | -DANDROID_PLATFORM=android-21 15 | -DANDROID_ABI=$ABI 16 | -DCMAKE_ANDROID_ARCH_ABI=$ABI 17 | -DANDROID_NDK=$NDK 18 | -DCMAKE_ANDROID_NDK=$NDK 19 | -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake 20 | -DCMAKE_MAKE_PROGRAM=$NINJA 21 | -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/$HASH/obj/$ABI 22 | -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/najeeb/local_hero_transform/example/build/app/intermediates/cxx/Debug/$HASH/obj/$ABI 23 | -DCMAKE_BUILD_TYPE=Debug 24 | -B$PROJECT/app/.cxx/Debug/$HASH/$ABI 25 | -GNinja 26 | -Wno-dev 27 | --no-warn-unused-cli -------------------------------------------------------------------------------- /example/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | example 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /example/windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "utils.h" 7 | 8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 9 | _In_ wchar_t *command_line, _In_ int show_command) { 10 | // Attach to console when present (e.g., 'flutter run') or create a 11 | // new console when running with a debugger. 12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 13 | CreateAndAttachConsole(); 14 | } 15 | 16 | // Initialize COM, so that it is available for use in the library and/or 17 | // plugins. 18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 19 | 20 | flutter::DartProject project(L"data"); 21 | 22 | std::vector command_line_arguments = 23 | GetCommandLineArguments(); 24 | 25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 26 | 27 | FlutterWindow window(project); 28 | Win32Window::Point origin(10, 10); 29 | Win32Window::Size size(1280, 720); 30 | if (!window.Create(L"example", origin, size)) { 31 | return EXIT_FAILURE; 32 | } 33 | window.SetQuitOnClose(true); 34 | 35 | ::MSG msg; 36 | while (::GetMessage(&msg, nullptr, 0, 0)) { 37 | ::TranslateMessage(&msg); 38 | ::DispatchMessage(&msg); 39 | } 40 | 41 | ::CoUninitialize(); 42 | return EXIT_SUCCESS; 43 | } 44 | -------------------------------------------------------------------------------- /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 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. 5 | id "dev.flutter.flutter-gradle-plugin" 6 | } 7 | 8 | android { 9 | namespace = "com.example.example" 10 | compileSdk = flutter.compileSdkVersion 11 | ndkVersion = flutter.ndkVersion 12 | 13 | compileOptions { 14 | sourceCompatibility = JavaVersion.VERSION_1_8 15 | targetCompatibility = JavaVersion.VERSION_1_8 16 | } 17 | 18 | kotlinOptions { 19 | jvmTarget = JavaVersion.VERSION_1_8 20 | } 21 | 22 | defaultConfig { 23 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 24 | applicationId = "com.example.example" 25 | // You can update the following values to match your application needs. 26 | // For more information, see: https://flutter.dev/to/review-gradle-config. 27 | minSdk = flutter.minSdkVersion 28 | targetSdk = flutter.targetSdkVersion 29 | versionCode = flutter.versionCode 30 | versionName = flutter.versionName 31 | } 32 | 33 | buildTypes { 34 | release { 35 | // TODO: Add your own signing config for the release build. 36 | // Signing with the debug keys for now, so `flutter run --release` works. 37 | signingConfig = signingConfigs.debug 38 | } 39 | } 40 | } 41 | 42 | flutter { 43 | source = "../.." 44 | } 45 | -------------------------------------------------------------------------------- /example/macos/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.14' 2 | 3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 5 | 6 | project 'Runner', { 7 | 'Debug' => :debug, 8 | 'Profile' => :release, 9 | 'Release' => :release, 10 | } 11 | 12 | def flutter_root 13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) 14 | unless File.exist?(generated_xcode_build_settings_path) 15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" 16 | end 17 | 18 | File.foreach(generated_xcode_build_settings_path) do |line| 19 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 20 | return matches[1].strip if matches 21 | end 22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" 23 | end 24 | 25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 26 | 27 | flutter_macos_podfile_setup 28 | 29 | target 'Runner' do 30 | use_frameworks! 31 | use_modular_headers! 32 | 33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) 34 | target 'RunnerTests' do 35 | inherit! :search_paths 36 | end 37 | end 38 | 39 | post_install do |installer| 40 | installer.pods_project.targets.each do |target| 41 | flutter_additional_macos_build_settings(target) 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | platform :ios, '12.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | target 'RunnerTests' do 36 | inherit! :search_paths 37 | end 38 | end 39 | 40 | post_install do |installer| 41 | installer.pods_project.targets.each do |target| 42 | flutter_additional_ios_build_settings(target) 43 | end 44 | end 45 | -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/src/items_model.dart: -------------------------------------------------------------------------------- 1 | /*File : local_hero_transform 2 | Version : 1.0.6 3 | */ 4 | 5 | import 'package:flutter/material.dart' show BuildContext, ImageChunkEvent, Widget; 6 | import 'package:flutter/widgets.dart' show DecorationImage; 7 | 8 | import 'card_style_mode.dart'; 9 | 10 | /// Data model for hero card content and styling. 11 | /// 12 | /// This model contains all the necessary information to build a card, 13 | /// including text content, images, and favorite button. 14 | class ItemsModel { 15 | /// Creates a HeroCardModel. 16 | /// 17 | /// Required parameters: 18 | /// - [name]: Widget that returns the name Text widget for a given index 19 | /// - [title]: Widget that returns the title Text widget 20 | /// - [subTitle]: Widget that returns the subtitle Text widget 21 | /// - [subTitleIcon]: Widget that returns the subtitle Icon widget 22 | /// - [image]: Widget that returns the DecorationImage for a given index 23 | /// - [favoriteIconButton]: Function that returns the favorite icon widget 24 | /// - [cardStyleMode]: Widget that returns the card style 25 | /// 26 | const ItemsModel({ 27 | required this.name, 28 | required this.title, 29 | required this.image, 30 | required this.subTitle, 31 | this.subTitleIcon, 32 | this.cardStyleMode, 33 | this.loadingImageBuilder, 34 | required this.favoriteIconButton, 35 | }); 36 | 37 | final Widget name; 38 | final Widget title; 39 | final Widget subTitle; 40 | final Widget favoriteIconButton; 41 | final Widget? subTitleIcon; 42 | final DecorationImage image; 43 | final Widget Function(BuildContext context, Widget child, ImageChunkEvent? loadingProgress)? 44 | loadingImageBuilder; 45 | final CardStyleMode? cardStyleMode; 46 | } 47 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/rules.ninja: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Ninja" Generator, CMake Version 3.22 3 | 4 | # This file contains all the rules used to get the outputs files 5 | # built from the input files. 6 | # It is included in the main 'build.ninja'. 7 | 8 | # ============================================================================= 9 | # Project: Project 10 | # Configurations: Debug 11 | # ============================================================================= 12 | # ============================================================================= 13 | 14 | ############################################# 15 | # Rule for running custom commands. 16 | 17 | rule CUSTOM_COMMAND 18 | command = $COMMAND 19 | description = $DESC 20 | 21 | 22 | ############################################# 23 | # Rule for re-running cmake. 24 | 25 | rule RERUN_CMAKE 26 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cmake --regenerate-during-build -S/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy -B/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86 27 | description = Re-running CMake... 28 | generator = 1 29 | 30 | 31 | ############################################# 32 | # Rule for cleaning all built files. 33 | 34 | rule CLEAN 35 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja $FILE_ARG -t clean $TARGETS 36 | description = Cleaning all built files... 37 | 38 | 39 | ############################################# 40 | # Rule for printing all primary targets available. 41 | 42 | rule HELP 43 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja -t targets 44 | description = All primary targets available: 45 | 46 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/rules.ninja: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Ninja" Generator, CMake Version 3.22 3 | 4 | # This file contains all the rules used to get the outputs files 5 | # built from the input files. 6 | # It is included in the main 'build.ninja'. 7 | 8 | # ============================================================================= 9 | # Project: Project 10 | # Configurations: Debug 11 | # ============================================================================= 12 | # ============================================================================= 13 | 14 | ############################################# 15 | # Rule for running custom commands. 16 | 17 | rule CUSTOM_COMMAND 18 | command = $COMMAND 19 | description = $DESC 20 | 21 | 22 | ############################################# 23 | # Rule for re-running cmake. 24 | 25 | rule RERUN_CMAKE 26 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cmake --regenerate-during-build -S/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy -B/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86_64 27 | description = Re-running CMake... 28 | generator = 1 29 | 30 | 31 | ############################################# 32 | # Rule for cleaning all built files. 33 | 34 | rule CLEAN 35 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja $FILE_ARG -t clean $TARGETS 36 | description = Cleaning all built files... 37 | 38 | 39 | ############################################# 40 | # Rule for printing all primary targets available. 41 | 42 | rule HELP 43 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja -t targets 44 | description = All primary targets available: 45 | 46 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/rules.ninja: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Ninja" Generator, CMake Version 3.22 3 | 4 | # This file contains all the rules used to get the outputs files 5 | # built from the input files. 6 | # It is included in the main 'build.ninja'. 7 | 8 | # ============================================================================= 9 | # Project: Project 10 | # Configurations: Debug 11 | # ============================================================================= 12 | # ============================================================================= 13 | 14 | ############################################# 15 | # Rule for running custom commands. 16 | 17 | rule CUSTOM_COMMAND 18 | command = $COMMAND 19 | description = $DESC 20 | 21 | 22 | ############################################# 23 | # Rule for re-running cmake. 24 | 25 | rule RERUN_CMAKE 26 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cmake --regenerate-during-build -S/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy -B/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a 27 | description = Re-running CMake... 28 | generator = 1 29 | 30 | 31 | ############################################# 32 | # Rule for cleaning all built files. 33 | 34 | rule CLEAN 35 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja $FILE_ARG -t clean $TARGETS 36 | description = Cleaning all built files... 37 | 38 | 39 | ############################################# 40 | # Rule for printing all primary targets available. 41 | 42 | rule HELP 43 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja -t targets 44 | description = All primary targets available: 45 | 46 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/rules.ninja: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Ninja" Generator, CMake Version 3.22 3 | 4 | # This file contains all the rules used to get the outputs files 5 | # built from the input files. 6 | # It is included in the main 'build.ninja'. 7 | 8 | # ============================================================================= 9 | # Project: Project 10 | # Configurations: Debug 11 | # ============================================================================= 12 | # ============================================================================= 13 | 14 | ############################################# 15 | # Rule for running custom commands. 16 | 17 | rule CUSTOM_COMMAND 18 | command = $COMMAND 19 | description = $DESC 20 | 21 | 22 | ############################################# 23 | # Rule for re-running cmake. 24 | 25 | rule RERUN_CMAKE 26 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cmake --regenerate-during-build -S/Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy -B/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a 27 | description = Re-running CMake... 28 | generator = 1 29 | 30 | 31 | ############################################# 32 | # Rule for cleaning all built files. 33 | 34 | rule CLEAN 35 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja $FILE_ARG -t clean $TARGETS 36 | description = Cleaning all built files... 37 | 38 | 39 | ############################################# 40 | # Rule for printing all primary targets available. 41 | 42 | rule HELP 43 | command = /Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ninja -t targets 44 | description = All primary targets available: 45 | 46 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: example 2 | description: "A new Flutter project." 3 | 4 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 5 | 6 | 7 | version: 1.0.1+1 8 | 9 | environment: 10 | sdk: ^3.6.0 11 | 12 | 13 | dependencies: 14 | flutter: 15 | sdk: flutter 16 | local_hero_transform: 17 | path: ../ 18 | 19 | cupertino_icons: ^1.0.8 20 | 21 | 22 | 23 | dev_dependencies: 24 | flutter_test: 25 | sdk: flutter 26 | 27 | 28 | flutter_lints: ^5.0.0 29 | 30 | 31 | flutter: 32 | 33 | 34 | uses-material-design: true 35 | 36 | # To add assets to your application, add an assets section, like this: 37 | # assets: 38 | # - assets/translations 39 | # - images/a_dot_ham.jpeg 40 | 41 | # An image asset can refer to one or more resolution-specific "variants", see 42 | # https://flutter.dev/to/resolution-aware-images 43 | 44 | # For details regarding adding assets from package dependencies, see 45 | # https://flutter.dev/to/asset-from-package 46 | 47 | # To add custom fonts to your application, add a fonts section here, 48 | # in this "flutter" section. Each entry in this list should have a 49 | # "family" key with the font family name, and a "fonts" key with a 50 | # list giving the asset and other descriptors for the font. For 51 | # example: 52 | # fonts: 53 | # - family: Schyler 54 | # fonts: 55 | # - asset: fonts/Schyler-Regular.ttf 56 | # - asset: fonts/Schyler-Italic.ttf 57 | # style: italic 58 | # - family: Trajan Pro 59 | # fonts: 60 | # - asset: fonts/TrajanPro.ttf 61 | # - asset: fonts/TrajanPro_Bold.ttf 62 | # weight: 700 63 | # 64 | # For details regarding fonts from package dependencies, 65 | # see https://flutter.dev/to/font-from-package 66 | -------------------------------------------------------------------------------- /example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Example 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | example 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /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: "8495dee1fd4aacbe9de707e7581203232f591b2f" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 17 | base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 18 | - platform: android 19 | create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 20 | base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 21 | - platform: ios 22 | create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 23 | base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 24 | - platform: linux 25 | create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 26 | base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 27 | - platform: macos 28 | create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 29 | base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 30 | - platform: web 31 | create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 32 | base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 33 | - platform: windows 34 | create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 35 | base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /example/windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(runner LANGUAGES CXX) 3 | 4 | # Define the application target. To change its name, change BINARY_NAME in the 5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer 6 | # work. 7 | # 8 | # Any new source files that you add to the application should be added here. 9 | add_executable(${BINARY_NAME} WIN32 10 | "flutter_window.cpp" 11 | "main.cpp" 12 | "utils.cpp" 13 | "win32_window.cpp" 14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 15 | "Runner.rc" 16 | "runner.exe.manifest" 17 | ) 18 | 19 | # Apply the standard set of build settings. This can be removed for applications 20 | # that need different build settings. 21 | apply_standard_settings(${BINARY_NAME}) 22 | 23 | # Add preprocessor definitions for the build version. 24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") 25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") 26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") 27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") 28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") 29 | 30 | # Disable Windows macros that collide with C++ standard library functions. 31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 32 | 33 | # Add dependency libraries and include directories. Add any application-specific 34 | # dependencies here. 35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 36 | target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") 37 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 38 | 39 | # Run the Flutter tool portions of the build. This must not be removed. 40 | add_dependencies(${BINARY_NAME} flutter_assemble) 41 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "0") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "TRUE") 38 | endif() 39 | 40 | # Set default install directory permissions. 41 | if(NOT DEFINED CMAKE_OBJDUMP) 42 | set(CMAKE_OBJDUMP "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump") 43 | endif() 44 | 45 | if(CMAKE_INSTALL_COMPONENT) 46 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 47 | else() 48 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 49 | endif() 50 | 51 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 52 | "${CMAKE_INSTALL_MANIFEST_FILES}") 53 | file(WRITE "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86/${CMAKE_INSTALL_MANIFEST}" 54 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 55 | -------------------------------------------------------------------------------- /example/windows/runner/utils.cpp: -------------------------------------------------------------------------------- 1 | #include "utils.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | void CreateAndAttachConsole() { 11 | if (::AllocConsole()) { 12 | FILE *unused; 13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) { 14 | _dup2(_fileno(stdout), 1); 15 | } 16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) { 17 | _dup2(_fileno(stdout), 2); 18 | } 19 | std::ios::sync_with_stdio(); 20 | FlutterDesktopResyncOutputStreams(); 21 | } 22 | } 23 | 24 | std::vector GetCommandLineArguments() { 25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. 26 | int argc; 27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); 28 | if (argv == nullptr) { 29 | return std::vector(); 30 | } 31 | 32 | std::vector command_line_arguments; 33 | 34 | // Skip the first argument as it's the binary name. 35 | for (int i = 1; i < argc; i++) { 36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i])); 37 | } 38 | 39 | ::LocalFree(argv); 40 | 41 | return command_line_arguments; 42 | } 43 | 44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) { 45 | if (utf16_string == nullptr) { 46 | return std::string(); 47 | } 48 | unsigned int target_length = ::WideCharToMultiByte( 49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 50 | -1, nullptr, 0, nullptr, nullptr) 51 | -1; // remove the trailing null character 52 | int input_length = (int)wcslen(utf16_string); 53 | std::string utf8_string; 54 | if (target_length == 0 || target_length > utf8_string.max_size()) { 55 | return utf8_string; 56 | } 57 | utf8_string.resize(target_length); 58 | int converted_length = ::WideCharToMultiByte( 59 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 60 | input_length, utf8_string.data(), target_length, nullptr, nullptr); 61 | if (converted_length == 0) { 62 | return std::string(); 63 | } 64 | return utf8_string; 65 | } 66 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "0") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "TRUE") 38 | endif() 39 | 40 | # Set default install directory permissions. 41 | if(NOT DEFINED CMAKE_OBJDUMP) 42 | set(CMAKE_OBJDUMP "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump") 43 | endif() 44 | 45 | if(CMAKE_INSTALL_COMPONENT) 46 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 47 | else() 48 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 49 | endif() 50 | 51 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 52 | "${CMAKE_INSTALL_MANIFEST_FILES}") 53 | file(WRITE "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/x86_64/${CMAKE_INSTALL_MANIFEST}" 54 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 55 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "0") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "TRUE") 38 | endif() 39 | 40 | # Set default install directory permissions. 41 | if(NOT DEFINED CMAKE_OBJDUMP) 42 | set(CMAKE_OBJDUMP "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump") 43 | endif() 44 | 45 | if(CMAKE_INSTALL_COMPONENT) 46 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 47 | else() 48 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 49 | endif() 50 | 51 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 52 | "${CMAKE_INSTALL_MANIFEST_FILES}") 53 | file(WRITE "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/${CMAKE_INSTALL_MANIFEST}" 54 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 55 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /Users/najeeb/Development/flutter/packages/flutter_tools/gradle/src/main/groovy 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "0") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "TRUE") 38 | endif() 39 | 40 | # Set default install directory permissions. 41 | if(NOT DEFINED CMAKE_OBJDUMP) 42 | set(CMAKE_OBJDUMP "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump") 43 | endif() 44 | 45 | if(CMAKE_INSTALL_COMPONENT) 46 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 47 | else() 48 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 49 | endif() 50 | 51 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 52 | "${CMAKE_INSTALL_MANIFEST_FILES}") 53 | file(WRITE "/Users/najeeb/local_hero_transform/example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/${CMAKE_INSTALL_MANIFEST}" 54 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 55 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/.cmake/api/v1/reply/index-2025-04-16T23-36-08-0654.json: -------------------------------------------------------------------------------- 1 | { 2 | "cmake" : 3 | { 4 | "generator" : 5 | { 6 | "multiConfig" : false, 7 | "name" : "Ninja" 8 | }, 9 | "paths" : 10 | { 11 | "cmake" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cmake", 12 | "cpack" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cpack", 13 | "ctest" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ctest", 14 | "root" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22" 15 | }, 16 | "version" : 17 | { 18 | "isDirty" : false, 19 | "major" : 3, 20 | "minor" : 22, 21 | "patch" : 1, 22 | "string" : "3.22.1-g37088a8", 23 | "suffix" : "g37088a8" 24 | } 25 | }, 26 | "objects" : 27 | [ 28 | { 29 | "jsonFile" : "codemodel-v2-e5f0f406248fabe44b4f.json", 30 | "kind" : "codemodel", 31 | "version" : 32 | { 33 | "major" : 2, 34 | "minor" : 3 35 | } 36 | }, 37 | { 38 | "jsonFile" : "cache-v2-c4973ebc0fc91a060600.json", 39 | "kind" : "cache", 40 | "version" : 41 | { 42 | "major" : 2, 43 | "minor" : 0 44 | } 45 | }, 46 | { 47 | "jsonFile" : "cmakeFiles-v1-910595d99d2d90c06687.json", 48 | "kind" : "cmakeFiles", 49 | "version" : 50 | { 51 | "major" : 1, 52 | "minor" : 0 53 | } 54 | } 55 | ], 56 | "reply" : 57 | { 58 | "client-agp" : 59 | { 60 | "cache-v2" : 61 | { 62 | "jsonFile" : "cache-v2-c4973ebc0fc91a060600.json", 63 | "kind" : "cache", 64 | "version" : 65 | { 66 | "major" : 2, 67 | "minor" : 0 68 | } 69 | }, 70 | "cmakeFiles-v1" : 71 | { 72 | "jsonFile" : "cmakeFiles-v1-910595d99d2d90c06687.json", 73 | "kind" : "cmakeFiles", 74 | "version" : 75 | { 76 | "major" : 1, 77 | "minor" : 0 78 | } 79 | }, 80 | "codemodel-v2" : 81 | { 82 | "jsonFile" : "codemodel-v2-e5f0f406248fabe44b4f.json", 83 | "kind" : "codemodel", 84 | "version" : 85 | { 86 | "major" : 2, 87 | "minor" : 3 88 | } 89 | } 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/.cmake/api/v1/reply/index-2025-04-16T23-36-10-0821.json: -------------------------------------------------------------------------------- 1 | { 2 | "cmake" : 3 | { 4 | "generator" : 5 | { 6 | "multiConfig" : false, 7 | "name" : "Ninja" 8 | }, 9 | "paths" : 10 | { 11 | "cmake" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cmake", 12 | "cpack" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cpack", 13 | "ctest" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ctest", 14 | "root" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22" 15 | }, 16 | "version" : 17 | { 18 | "isDirty" : false, 19 | "major" : 3, 20 | "minor" : 22, 21 | "patch" : 1, 22 | "string" : "3.22.1-g37088a8", 23 | "suffix" : "g37088a8" 24 | } 25 | }, 26 | "objects" : 27 | [ 28 | { 29 | "jsonFile" : "codemodel-v2-da80898f6e5de7305dde.json", 30 | "kind" : "codemodel", 31 | "version" : 32 | { 33 | "major" : 2, 34 | "minor" : 3 35 | } 36 | }, 37 | { 38 | "jsonFile" : "cache-v2-bf74fd2e96d50a886bfd.json", 39 | "kind" : "cache", 40 | "version" : 41 | { 42 | "major" : 2, 43 | "minor" : 0 44 | } 45 | }, 46 | { 47 | "jsonFile" : "cmakeFiles-v1-2412afab9cc48e76c9cf.json", 48 | "kind" : "cmakeFiles", 49 | "version" : 50 | { 51 | "major" : 1, 52 | "minor" : 0 53 | } 54 | } 55 | ], 56 | "reply" : 57 | { 58 | "client-agp" : 59 | { 60 | "cache-v2" : 61 | { 62 | "jsonFile" : "cache-v2-bf74fd2e96d50a886bfd.json", 63 | "kind" : "cache", 64 | "version" : 65 | { 66 | "major" : 2, 67 | "minor" : 0 68 | } 69 | }, 70 | "cmakeFiles-v1" : 71 | { 72 | "jsonFile" : "cmakeFiles-v1-2412afab9cc48e76c9cf.json", 73 | "kind" : "cmakeFiles", 74 | "version" : 75 | { 76 | "major" : 1, 77 | "minor" : 0 78 | } 79 | }, 80 | "codemodel-v2" : 81 | { 82 | "jsonFile" : "codemodel-v2-da80898f6e5de7305dde.json", 83 | "kind" : "codemodel", 84 | "version" : 85 | { 86 | "major" : 2, 87 | "minor" : 3 88 | } 89 | } 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/.cmake/api/v1/reply/index-2025-04-16T23-35-16-0753.json: -------------------------------------------------------------------------------- 1 | { 2 | "cmake" : 3 | { 4 | "generator" : 5 | { 6 | "multiConfig" : false, 7 | "name" : "Ninja" 8 | }, 9 | "paths" : 10 | { 11 | "cmake" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cmake", 12 | "cpack" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cpack", 13 | "ctest" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ctest", 14 | "root" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22" 15 | }, 16 | "version" : 17 | { 18 | "isDirty" : false, 19 | "major" : 3, 20 | "minor" : 22, 21 | "patch" : 1, 22 | "string" : "3.22.1-g37088a8", 23 | "suffix" : "g37088a8" 24 | } 25 | }, 26 | "objects" : 27 | [ 28 | { 29 | "jsonFile" : "codemodel-v2-8612834c56ab60cb8bf8.json", 30 | "kind" : "codemodel", 31 | "version" : 32 | { 33 | "major" : 2, 34 | "minor" : 3 35 | } 36 | }, 37 | { 38 | "jsonFile" : "cache-v2-ccffb95ee5093880e4ce.json", 39 | "kind" : "cache", 40 | "version" : 41 | { 42 | "major" : 2, 43 | "minor" : 0 44 | } 45 | }, 46 | { 47 | "jsonFile" : "cmakeFiles-v1-c289c2f3adf438f85274.json", 48 | "kind" : "cmakeFiles", 49 | "version" : 50 | { 51 | "major" : 1, 52 | "minor" : 0 53 | } 54 | } 55 | ], 56 | "reply" : 57 | { 58 | "client-agp" : 59 | { 60 | "cache-v2" : 61 | { 62 | "jsonFile" : "cache-v2-ccffb95ee5093880e4ce.json", 63 | "kind" : "cache", 64 | "version" : 65 | { 66 | "major" : 2, 67 | "minor" : 0 68 | } 69 | }, 70 | "cmakeFiles-v1" : 71 | { 72 | "jsonFile" : "cmakeFiles-v1-c289c2f3adf438f85274.json", 73 | "kind" : "cmakeFiles", 74 | "version" : 75 | { 76 | "major" : 1, 77 | "minor" : 0 78 | } 79 | }, 80 | "codemodel-v2" : 81 | { 82 | "jsonFile" : "codemodel-v2-8612834c56ab60cb8bf8.json", 83 | "kind" : "codemodel", 84 | "version" : 85 | { 86 | "major" : 2, 87 | "minor" : 3 88 | } 89 | } 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/.cmake/api/v1/reply/index-2025-04-16T23-35-52-0676.json: -------------------------------------------------------------------------------- 1 | { 2 | "cmake" : 3 | { 4 | "generator" : 5 | { 6 | "multiConfig" : false, 7 | "name" : "Ninja" 8 | }, 9 | "paths" : 10 | { 11 | "cmake" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cmake", 12 | "cpack" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/cpack", 13 | "ctest" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/bin/ctest", 14 | "root" : "/Users/najeeb/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22" 15 | }, 16 | "version" : 17 | { 18 | "isDirty" : false, 19 | "major" : 3, 20 | "minor" : 22, 21 | "patch" : 1, 22 | "string" : "3.22.1-g37088a8", 23 | "suffix" : "g37088a8" 24 | } 25 | }, 26 | "objects" : 27 | [ 28 | { 29 | "jsonFile" : "codemodel-v2-8380275420085a821b42.json", 30 | "kind" : "codemodel", 31 | "version" : 32 | { 33 | "major" : 2, 34 | "minor" : 3 35 | } 36 | }, 37 | { 38 | "jsonFile" : "cache-v2-05f012c5a6fad3538e5f.json", 39 | "kind" : "cache", 40 | "version" : 41 | { 42 | "major" : 2, 43 | "minor" : 0 44 | } 45 | }, 46 | { 47 | "jsonFile" : "cmakeFiles-v1-c3e80314e175ccb29274.json", 48 | "kind" : "cmakeFiles", 49 | "version" : 50 | { 51 | "major" : 1, 52 | "minor" : 0 53 | } 54 | } 55 | ], 56 | "reply" : 57 | { 58 | "client-agp" : 59 | { 60 | "cache-v2" : 61 | { 62 | "jsonFile" : "cache-v2-05f012c5a6fad3538e5f.json", 63 | "kind" : "cache", 64 | "version" : 65 | { 66 | "major" : 2, 67 | "minor" : 0 68 | } 69 | }, 70 | "cmakeFiles-v1" : 71 | { 72 | "jsonFile" : "cmakeFiles-v1-c3e80314e175ccb29274.json", 73 | "kind" : "cmakeFiles", 74 | "version" : 75 | { 76 | "major" : 1, 77 | "minor" : 0 78 | } 79 | }, 80 | "codemodel-v2" : 81 | { 82 | "jsonFile" : "codemodel-v2-8380275420085a821b42.json", 83 | "kind" : "codemodel", 84 | "version" : 85 | { 86 | "major" : 2, 87 | "minor" : 3 88 | } 89 | } 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## [1.0.6] 2 | ### 1. Add button change loading view in example page. 3 | ### 2. Refactor README.md file. 4 | 5 | 6 | ## [1.0.5] 7 | ### 1. Make Loading Card Supported RTL and LTR Direction. 8 | 9 | 10 | ## [1.0.4] 11 | ### 1. Add Card GradientColor. 12 | ### 2. Add Loading Image Builder. 13 | 14 | 15 | ## [1.0.3] 16 | ### 1. Support Dark and Light Theme. 17 | ### 2. Add Card Loading. 18 | ### 3. Customize Card Loading Colors. 19 | ### 4. Customize ItemsModel like[name, title, subTitle] as Widget to make user able to customize Widgets UI. 20 | ### 5. Add CardStyleMode like [isDarkMode, isLoading, animationShimmerColor, itemColor,cardColor]. 21 | 22 | 23 | ## [1.0.2] 24 | ### 1. Support web responsive 🚀 25 | ### 2. Add default designSize for mobile and tablet 26 | ### 3. Update code example for support responsive icons 27 | 28 | 29 | ## [1.0.1] 30 | ### 1. Optimized responsive ui for mobile(Tablets) and Web. 31 | 32 | ## [1.0.0] 33 | ### 1. Add a textHeight parameter to Calculate the height of the entire text size, giving it enough space and giving the rest of the available space to the image. 34 | ### 2. Performance Optimizations**: Smoother animations with better resource management. 35 | ### 3. Complete Code Refactor**: Optimized performance and cleaner architecture. 36 | ### 4. Enhanced Customization**: More flexible widget configuration. 37 | ### 5. Improved Documentation**: Better API reference and usage examples. 38 | ### 6. Type Safety**: Stronger typing throughout the package. 39 | ### 7. Change favoriteIconPosition and favoriteIconHeightPosition padding form 12 to 18. 40 | 41 | ## [0.0.7] 42 | ### 1. Create DetailsScreen and make user onTap to card Navigate to it. 43 | ### 2. Fix bug onClick to Favorite icon. 44 | ### 3. Delete custom_local_hero code Example 45 | ### 4. Add example to how to add custom image 46 | 47 | ## [0.0.6] 48 | ### 1. Add parameter cardWidth, that for get card width for do flexible the titles and subtitles that inside positions to make it responsive . 49 | ### 2. Delete 'sar' form title, for show just title without show RichText 'sar' . 50 | ### 3. Use LayoutBuilder with CardListView and CardGridView to get maxWidth size for add limitation for position to can flex the element inside it . 51 | ### 4. Show showSnackBar on pressed to onPressedFavoriteIcon 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /example/windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project) 8 | : project_(project) {} 9 | 10 | FlutterWindow::~FlutterWindow() {} 11 | 12 | bool FlutterWindow::OnCreate() { 13 | if (!Win32Window::OnCreate()) { 14 | return false; 15 | } 16 | 17 | RECT frame = GetClientArea(); 18 | 19 | // The size here must match the window dimensions to avoid unnecessary surface 20 | // creation / destruction in the startup path. 21 | flutter_controller_ = std::make_unique( 22 | frame.right - frame.left, frame.bottom - frame.top, project_); 23 | // Ensure that basic setup of the controller was successful. 24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 25 | return false; 26 | } 27 | RegisterPlugins(flutter_controller_->engine()); 28 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 29 | 30 | flutter_controller_->engine()->SetNextFrameCallback([&]() { 31 | this->Show(); 32 | }); 33 | 34 | // Flutter can complete the first frame before the "show window" callback is 35 | // registered. The following call ensures a frame is pending to ensure the 36 | // window is shown. It is a no-op if the first frame hasn't completed yet. 37 | flutter_controller_->ForceRedraw(); 38 | 39 | return true; 40 | } 41 | 42 | void FlutterWindow::OnDestroy() { 43 | if (flutter_controller_) { 44 | flutter_controller_ = nullptr; 45 | } 46 | 47 | Win32Window::OnDestroy(); 48 | } 49 | 50 | LRESULT 51 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 52 | WPARAM const wparam, 53 | LPARAM const lparam) noexcept { 54 | // Give Flutter, including plugins, an opportunity to handle window messages. 55 | if (flutter_controller_) { 56 | std::optional result = 57 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 58 | lparam); 59 | if (result) { 60 | return *result; 61 | } 62 | } 63 | 64 | switch (message) { 65 | case WM_FONTCHANGE: 66 | flutter_controller_->engine()->ReloadSystemFonts(); 67 | break; 68 | } 69 | 70 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 71 | } 72 | -------------------------------------------------------------------------------- /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/linux/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.10) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | 12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...), 13 | # which isn't available in 3.10. 14 | function(list_prepend LIST_NAME PREFIX) 15 | set(NEW_LIST "") 16 | foreach(element ${${LIST_NAME}}) 17 | list(APPEND NEW_LIST "${PREFIX}${element}") 18 | endforeach(element) 19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) 20 | endfunction() 21 | 22 | # === Flutter Library === 23 | # System-level dependencies. 24 | find_package(PkgConfig REQUIRED) 25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) 27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) 28 | 29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") 30 | 31 | # Published to parent scope for install step. 32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) 36 | 37 | list(APPEND FLUTTER_LIBRARY_HEADERS 38 | "fl_basic_message_channel.h" 39 | "fl_binary_codec.h" 40 | "fl_binary_messenger.h" 41 | "fl_dart_project.h" 42 | "fl_engine.h" 43 | "fl_json_message_codec.h" 44 | "fl_json_method_codec.h" 45 | "fl_message_codec.h" 46 | "fl_method_call.h" 47 | "fl_method_channel.h" 48 | "fl_method_codec.h" 49 | "fl_method_response.h" 50 | "fl_plugin_registrar.h" 51 | "fl_plugin_registry.h" 52 | "fl_standard_message_codec.h" 53 | "fl_standard_method_codec.h" 54 | "fl_string_codec.h" 55 | "fl_value.h" 56 | "fl_view.h" 57 | "flutter_linux.h" 58 | ) 59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") 60 | add_library(flutter INTERFACE) 61 | target_include_directories(flutter INTERFACE 62 | "${EPHEMERAL_DIR}" 63 | ) 64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") 65 | target_link_libraries(flutter INTERFACE 66 | PkgConfig::GTK 67 | PkgConfig::GLIB 68 | PkgConfig::GIO 69 | ) 70 | add_dependencies(flutter flutter_assemble) 71 | 72 | # === Flutter tool backend === 73 | # _phony_ is a non-existent file to force this command to run every time, 74 | # since currently there's no way to get a full input/output list from the 75 | # flutter tool. 76 | add_custom_command( 77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_ 79 | COMMAND ${CMAKE_COMMAND} -E env 80 | ${FLUTTER_TOOL_ENVIRONMENT} 81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" 82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} 83 | VERBATIM 84 | ) 85 | add_custom_target(flutter_assemble DEPENDS 86 | "${FLUTTER_LIBRARY}" 87 | ${FLUTTER_LIBRARY_HEADERS} 88 | ) 89 | -------------------------------------------------------------------------------- /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/windows/runner/Runner.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #pragma code_page(65001) 4 | #include "resource.h" 5 | 6 | #define APSTUDIO_READONLY_SYMBOLS 7 | ///////////////////////////////////////////////////////////////////////////// 8 | // 9 | // Generated from the TEXTINCLUDE 2 resource. 10 | // 11 | #include "winres.h" 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | #undef APSTUDIO_READONLY_SYMBOLS 15 | 16 | ///////////////////////////////////////////////////////////////////////////// 17 | // English (United States) resources 18 | 19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | 22 | #ifdef APSTUDIO_INVOKED 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // 25 | // TEXTINCLUDE 26 | // 27 | 28 | 1 TEXTINCLUDE 29 | BEGIN 30 | "resource.h\0" 31 | END 32 | 33 | 2 TEXTINCLUDE 34 | BEGIN 35 | "#include ""winres.h""\r\n" 36 | "\0" 37 | END 38 | 39 | 3 TEXTINCLUDE 40 | BEGIN 41 | "\r\n" 42 | "\0" 43 | END 44 | 45 | #endif // APSTUDIO_INVOKED 46 | 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | // 50 | // Icon 51 | // 52 | 53 | // Icon with lowest ID value placed first to ensure application icon 54 | // remains consistent on all systems. 55 | IDI_APP_ICON ICON "resources\\app_icon.ico" 56 | 57 | 58 | ///////////////////////////////////////////////////////////////////////////// 59 | // 60 | // Version 61 | // 62 | 63 | #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) 64 | #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD 65 | #else 66 | #define VERSION_AS_NUMBER 1,0,0,0 67 | #endif 68 | 69 | #if defined(FLUTTER_VERSION) 70 | #define VERSION_AS_STRING FLUTTER_VERSION 71 | #else 72 | #define VERSION_AS_STRING "1.0.0" 73 | #endif 74 | 75 | VS_VERSION_INFO VERSIONINFO 76 | FILEVERSION VERSION_AS_NUMBER 77 | PRODUCTVERSION VERSION_AS_NUMBER 78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 79 | #ifdef _DEBUG 80 | FILEFLAGS VS_FF_DEBUG 81 | #else 82 | FILEFLAGS 0x0L 83 | #endif 84 | FILEOS VOS__WINDOWS32 85 | FILETYPE VFT_APP 86 | FILESUBTYPE 0x0L 87 | BEGIN 88 | BLOCK "StringFileInfo" 89 | BEGIN 90 | BLOCK "040904e4" 91 | BEGIN 92 | VALUE "CompanyName", "com.example" "\0" 93 | VALUE "FileDescription", "example" "\0" 94 | VALUE "FileVersion", VERSION_AS_STRING "\0" 95 | VALUE "InternalName", "example" "\0" 96 | VALUE "LegalCopyright", "Copyright (C) 2024 com.example. All rights reserved." "\0" 97 | VALUE "OriginalFilename", "example.exe" "\0" 98 | VALUE "ProductName", "example" "\0" 99 | VALUE "ProductVersion", VERSION_AS_STRING "\0" 100 | END 101 | END 102 | BLOCK "VarFileInfo" 103 | BEGIN 104 | VALUE "Translation", 0x409, 1252 105 | END 106 | END 107 | 108 | #endif // English (United States) resources 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | 112 | 113 | #ifndef APSTUDIO_INVOKED 114 | ///////////////////////////////////////////////////////////////////////////// 115 | // 116 | // Generated from the TEXTINCLUDE 3 resource. 117 | // 118 | 119 | 120 | ///////////////////////////////////////////////////////////////////////////// 121 | #endif // not APSTUDIO_INVOKED 122 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "Clang") 4 | set(CMAKE_C_COMPILER_VERSION "17.0.2") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "17") 8 | set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "ON") 9 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17;c_std_23") 10 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 11 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 12 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 13 | set(CMAKE_C17_COMPILE_FEATURES "c_std_17") 14 | set(CMAKE_C23_COMPILE_FEATURES "c_std_23") 15 | 16 | set(CMAKE_C_PLATFORM_ID "Linux") 17 | set(CMAKE_C_SIMULATE_ID "") 18 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "GNU") 19 | set(CMAKE_C_SIMULATE_VERSION "") 20 | 21 | 22 | 23 | 24 | set(CMAKE_AR "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar") 25 | set(CMAKE_C_COMPILER_AR "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar") 26 | set(CMAKE_RANLIB "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib") 27 | set(CMAKE_C_COMPILER_RANLIB "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib") 28 | set(CMAKE_LINKER "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld") 29 | set(CMAKE_MT "") 30 | set(CMAKE_COMPILER_IS_GNUCC ) 31 | set(CMAKE_C_COMPILER_LOADED 1) 32 | set(CMAKE_C_COMPILER_WORKS TRUE) 33 | set(CMAKE_C_ABI_COMPILED TRUE) 34 | 35 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 36 | 37 | set(CMAKE_C_COMPILER_ID_RUN 1) 38 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 39 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 40 | set(CMAKE_C_LINKER_PREFERENCE 10) 41 | 42 | # Save compiler ABI information. 43 | set(CMAKE_C_SIZEOF_DATA_PTR "4") 44 | set(CMAKE_C_COMPILER_ABI "ELF") 45 | set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN") 46 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 47 | 48 | if(CMAKE_C_SIZEOF_DATA_PTR) 49 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 50 | endif() 51 | 52 | if(CMAKE_C_COMPILER_ABI) 53 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 54 | endif() 55 | 56 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 57 | set(CMAKE_LIBRARY_ARCHITECTURE "") 58 | endif() 59 | 60 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 61 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 62 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 63 | endif() 64 | 65 | 66 | 67 | 68 | 69 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/17/include;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/i686-linux-android;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include") 70 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "-l:libunwind.a;dl;c;-l:libunwind.a;dl") 71 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/17/lib/linux/i386;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/i686-linux-android/21;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/i686-linux-android;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib") 72 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 73 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/x86_64/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "Clang") 4 | set(CMAKE_C_COMPILER_VERSION "17.0.2") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "17") 8 | set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "ON") 9 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17;c_std_23") 10 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 11 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 12 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 13 | set(CMAKE_C17_COMPILE_FEATURES "c_std_17") 14 | set(CMAKE_C23_COMPILE_FEATURES "c_std_23") 15 | 16 | set(CMAKE_C_PLATFORM_ID "Linux") 17 | set(CMAKE_C_SIMULATE_ID "") 18 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "GNU") 19 | set(CMAKE_C_SIMULATE_VERSION "") 20 | 21 | 22 | 23 | 24 | set(CMAKE_AR "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar") 25 | set(CMAKE_C_COMPILER_AR "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar") 26 | set(CMAKE_RANLIB "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib") 27 | set(CMAKE_C_COMPILER_RANLIB "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib") 28 | set(CMAKE_LINKER "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld") 29 | set(CMAKE_MT "") 30 | set(CMAKE_COMPILER_IS_GNUCC ) 31 | set(CMAKE_C_COMPILER_LOADED 1) 32 | set(CMAKE_C_COMPILER_WORKS TRUE) 33 | set(CMAKE_C_ABI_COMPILED TRUE) 34 | 35 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 36 | 37 | set(CMAKE_C_COMPILER_ID_RUN 1) 38 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 39 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 40 | set(CMAKE_C_LINKER_PREFERENCE 10) 41 | 42 | # Save compiler ABI information. 43 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 44 | set(CMAKE_C_COMPILER_ABI "ELF") 45 | set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN") 46 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 47 | 48 | if(CMAKE_C_SIZEOF_DATA_PTR) 49 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 50 | endif() 51 | 52 | if(CMAKE_C_COMPILER_ABI) 53 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 54 | endif() 55 | 56 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 57 | set(CMAKE_LIBRARY_ARCHITECTURE "") 58 | endif() 59 | 60 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 61 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 62 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 63 | endif() 64 | 65 | 66 | 67 | 68 | 69 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/17/include;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/x86_64-linux-android;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include") 70 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "-l:libunwind.a;dl;c;-l:libunwind.a;dl") 71 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/17/lib/linux/x86_64;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/x86_64-linux-android/21;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/x86_64-linux-android;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib") 72 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 73 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/armeabi-v7a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "Clang") 4 | set(CMAKE_C_COMPILER_VERSION "17.0.2") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "17") 8 | set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "ON") 9 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17;c_std_23") 10 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 11 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 12 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 13 | set(CMAKE_C17_COMPILE_FEATURES "c_std_17") 14 | set(CMAKE_C23_COMPILE_FEATURES "c_std_23") 15 | 16 | set(CMAKE_C_PLATFORM_ID "Linux") 17 | set(CMAKE_C_SIMULATE_ID "") 18 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "GNU") 19 | set(CMAKE_C_SIMULATE_VERSION "") 20 | 21 | 22 | 23 | 24 | set(CMAKE_AR "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar") 25 | set(CMAKE_C_COMPILER_AR "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar") 26 | set(CMAKE_RANLIB "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib") 27 | set(CMAKE_C_COMPILER_RANLIB "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib") 28 | set(CMAKE_LINKER "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld") 29 | set(CMAKE_MT "") 30 | set(CMAKE_COMPILER_IS_GNUCC ) 31 | set(CMAKE_C_COMPILER_LOADED 1) 32 | set(CMAKE_C_COMPILER_WORKS TRUE) 33 | set(CMAKE_C_ABI_COMPILED TRUE) 34 | 35 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 36 | 37 | set(CMAKE_C_COMPILER_ID_RUN 1) 38 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 39 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 40 | set(CMAKE_C_LINKER_PREFERENCE 10) 41 | 42 | # Save compiler ABI information. 43 | set(CMAKE_C_SIZEOF_DATA_PTR "4") 44 | set(CMAKE_C_COMPILER_ABI "ELF") 45 | set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN") 46 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 47 | 48 | if(CMAKE_C_SIZEOF_DATA_PTR) 49 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 50 | endif() 51 | 52 | if(CMAKE_C_COMPILER_ABI) 53 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 54 | endif() 55 | 56 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 57 | set(CMAKE_LIBRARY_ARCHITECTURE "") 58 | endif() 59 | 60 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 61 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 62 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 63 | endif() 64 | 65 | 66 | 67 | 68 | 69 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/17/include;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/arm-linux-androideabi;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include") 70 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "-l:libunwind.a;dl;c;-l:libunwind.a;dl") 71 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/17/lib/linux/arm;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/arm-linux-androideabi/21;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/arm-linux-androideabi;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib") 72 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 73 | -------------------------------------------------------------------------------- /example/android/app/.cxx/Debug/5u6vp6g6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "Clang") 4 | set(CMAKE_C_COMPILER_VERSION "17.0.2") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "17") 8 | set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "ON") 9 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17;c_std_23") 10 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 11 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 12 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 13 | set(CMAKE_C17_COMPILE_FEATURES "c_std_17") 14 | set(CMAKE_C23_COMPILE_FEATURES "c_std_23") 15 | 16 | set(CMAKE_C_PLATFORM_ID "Linux") 17 | set(CMAKE_C_SIMULATE_ID "") 18 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "GNU") 19 | set(CMAKE_C_SIMULATE_VERSION "") 20 | 21 | 22 | 23 | 24 | set(CMAKE_AR "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar") 25 | set(CMAKE_C_COMPILER_AR "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar") 26 | set(CMAKE_RANLIB "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib") 27 | set(CMAKE_C_COMPILER_RANLIB "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib") 28 | set(CMAKE_LINKER "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld") 29 | set(CMAKE_MT "") 30 | set(CMAKE_COMPILER_IS_GNUCC ) 31 | set(CMAKE_C_COMPILER_LOADED 1) 32 | set(CMAKE_C_COMPILER_WORKS TRUE) 33 | set(CMAKE_C_ABI_COMPILED TRUE) 34 | 35 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 36 | 37 | set(CMAKE_C_COMPILER_ID_RUN 1) 38 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 39 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 40 | set(CMAKE_C_LINKER_PREFERENCE 10) 41 | 42 | # Save compiler ABI information. 43 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 44 | set(CMAKE_C_COMPILER_ABI "ELF") 45 | set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN") 46 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 47 | 48 | if(CMAKE_C_SIZEOF_DATA_PTR) 49 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 50 | endif() 51 | 52 | if(CMAKE_C_COMPILER_ABI) 53 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 54 | endif() 55 | 56 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 57 | set(CMAKE_LIBRARY_ARCHITECTURE "") 58 | endif() 59 | 60 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 61 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 62 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 63 | endif() 64 | 65 | 66 | 67 | 68 | 69 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/17/include;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include") 70 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "-l:libunwind.a;dl;c;-l:libunwind.a;dl") 71 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/17/lib/linux/aarch64;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/21;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android;/Users/najeeb/Library/Android/sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib") 72 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 73 | -------------------------------------------------------------------------------- /example/windows/runner/win32_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_WIN32_WINDOW_H_ 2 | #define RUNNER_WIN32_WINDOW_H_ 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be 11 | // inherited from by classes that wish to specialize with custom 12 | // rendering and input handling 13 | class Win32Window { 14 | public: 15 | struct Point { 16 | unsigned int x; 17 | unsigned int y; 18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {} 19 | }; 20 | 21 | struct Size { 22 | unsigned int width; 23 | unsigned int height; 24 | Size(unsigned int width, unsigned int height) 25 | : width(width), height(height) {} 26 | }; 27 | 28 | Win32Window(); 29 | virtual ~Win32Window(); 30 | 31 | // Creates a win32 window with |title| that is positioned and sized using 32 | // |origin| and |size|. New windows are created on the default monitor. Window 33 | // sizes are specified to the OS in physical pixels, hence to ensure a 34 | // consistent size this function will scale the inputted width and height as 35 | // as appropriate for the default monitor. The window is invisible until 36 | // |Show| is called. Returns true if the window was created successfully. 37 | bool Create(const std::wstring& title, const Point& origin, const Size& size); 38 | 39 | // Show the current window. Returns true if the window was successfully shown. 40 | bool Show(); 41 | 42 | // Release OS resources associated with window. 43 | void Destroy(); 44 | 45 | // Inserts |content| into the window tree. 46 | void SetChildContent(HWND content); 47 | 48 | // Returns the backing Window handle to enable clients to set icon and other 49 | // window properties. Returns nullptr if the window has been destroyed. 50 | HWND GetHandle(); 51 | 52 | // If true, closing this window will quit the application. 53 | void SetQuitOnClose(bool quit_on_close); 54 | 55 | // Return a RECT representing the bounds of the current client area. 56 | RECT GetClientArea(); 57 | 58 | protected: 59 | // Processes and route salient window messages for mouse handling, 60 | // size change and DPI. Delegates handling of these to member overloads that 61 | // inheriting classes can handle. 62 | virtual LRESULT MessageHandler(HWND window, 63 | UINT const message, 64 | WPARAM const wparam, 65 | LPARAM const lparam) noexcept; 66 | 67 | // Called when CreateAndShow is called, allowing subclass window-related 68 | // setup. Subclasses should return false if setup fails. 69 | virtual bool OnCreate(); 70 | 71 | // Called when Destroy is called. 72 | virtual void OnDestroy(); 73 | 74 | private: 75 | friend class WindowClassRegistrar; 76 | 77 | // OS callback called by message pump. Handles the WM_NCCREATE message which 78 | // is passed when the non-client area is being created and enables automatic 79 | // non-client DPI scaling so that the non-client area automatically 80 | // responds to changes in DPI. All other messages are handled by 81 | // MessageHandler. 82 | static LRESULT CALLBACK WndProc(HWND const window, 83 | UINT const message, 84 | WPARAM const wparam, 85 | LPARAM const lparam) noexcept; 86 | 87 | // Retrieves a class instance pointer for |window| 88 | static Win32Window* GetThisFromHandle(HWND const window) noexcept; 89 | 90 | // Update the window frame's theme to match the system theme. 91 | static void UpdateTheme(HWND const window); 92 | 93 | bool quit_on_close_ = false; 94 | 95 | // window handle for top level window. 96 | HWND window_handle_ = nullptr; 97 | 98 | // window handle for hosted content. 99 | HWND child_content_ = nullptr; 100 | }; 101 | 102 | #endif // RUNNER_WIN32_WINDOW_H_ 103 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 64 | 66 | 72 | 73 | 74 | 75 | 81 | 83 | 89 | 90 | 91 | 92 | 94 | 95 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 64 | 66 | 72 | 73 | 74 | 75 | 81 | 83 | 89 | 90 | 91 | 92 | 94 | 95 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /example/windows/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.14) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") 12 | 13 | # Set fallback configurations for older versions of the flutter tool. 14 | if (NOT DEFINED FLUTTER_TARGET_PLATFORM) 15 | set(FLUTTER_TARGET_PLATFORM "windows-x64") 16 | endif() 17 | 18 | # === Flutter Library === 19 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") 20 | 21 | # Published to parent scope for install step. 22 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 23 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 24 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 25 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) 26 | 27 | list(APPEND FLUTTER_LIBRARY_HEADERS 28 | "flutter_export.h" 29 | "flutter_windows.h" 30 | "flutter_messenger.h" 31 | "flutter_plugin_registrar.h" 32 | "flutter_texture_registrar.h" 33 | ) 34 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") 35 | add_library(flutter INTERFACE) 36 | target_include_directories(flutter INTERFACE 37 | "${EPHEMERAL_DIR}" 38 | ) 39 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") 40 | add_dependencies(flutter flutter_assemble) 41 | 42 | # === Wrapper === 43 | list(APPEND CPP_WRAPPER_SOURCES_CORE 44 | "core_implementations.cc" 45 | "standard_codec.cc" 46 | ) 47 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") 48 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN 49 | "plugin_registrar.cc" 50 | ) 51 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") 52 | list(APPEND CPP_WRAPPER_SOURCES_APP 53 | "flutter_engine.cc" 54 | "flutter_view_controller.cc" 55 | ) 56 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") 57 | 58 | # Wrapper sources needed for a plugin. 59 | add_library(flutter_wrapper_plugin STATIC 60 | ${CPP_WRAPPER_SOURCES_CORE} 61 | ${CPP_WRAPPER_SOURCES_PLUGIN} 62 | ) 63 | apply_standard_settings(flutter_wrapper_plugin) 64 | set_target_properties(flutter_wrapper_plugin PROPERTIES 65 | POSITION_INDEPENDENT_CODE ON) 66 | set_target_properties(flutter_wrapper_plugin PROPERTIES 67 | CXX_VISIBILITY_PRESET hidden) 68 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) 69 | target_include_directories(flutter_wrapper_plugin PUBLIC 70 | "${WRAPPER_ROOT}/include" 71 | ) 72 | add_dependencies(flutter_wrapper_plugin flutter_assemble) 73 | 74 | # Wrapper sources needed for the runner. 75 | add_library(flutter_wrapper_app STATIC 76 | ${CPP_WRAPPER_SOURCES_CORE} 77 | ${CPP_WRAPPER_SOURCES_APP} 78 | ) 79 | apply_standard_settings(flutter_wrapper_app) 80 | target_link_libraries(flutter_wrapper_app PUBLIC flutter) 81 | target_include_directories(flutter_wrapper_app PUBLIC 82 | "${WRAPPER_ROOT}/include" 83 | ) 84 | add_dependencies(flutter_wrapper_app flutter_assemble) 85 | 86 | # === Flutter tool backend === 87 | # _phony_ is a non-existent file to force this command to run every time, 88 | # since currently there's no way to get a full input/output list from the 89 | # flutter tool. 90 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") 91 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) 92 | add_custom_command( 93 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 94 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} 95 | ${CPP_WRAPPER_SOURCES_APP} 96 | ${PHONY_OUTPUT} 97 | COMMAND ${CMAKE_COMMAND} -E env 98 | ${FLUTTER_TOOL_ENVIRONMENT} 99 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" 100 | ${FLUTTER_TARGET_PLATFORM} $ 101 | VERBATIM 102 | ) 103 | add_custom_target(flutter_assemble DEPENDS 104 | "${FLUTTER_LIBRARY}" 105 | ${FLUTTER_LIBRARY_HEADERS} 106 | ${CPP_WRAPPER_SOURCES_CORE} 107 | ${CPP_WRAPPER_SOURCES_PLUGIN} 108 | ${CPP_WRAPPER_SOURCES_APP} 109 | ) 110 | -------------------------------------------------------------------------------- /lib/src/local_hero_views.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_screenutil/flutter_screenutil.dart'; 3 | import 'package:local_hero_transform/src/items_model.dart'; 4 | import 'package:local_hero_transform/src/utils.dart' 5 | show ContextExtension, CustomOnPressedFavoriteIcon; 6 | 7 | import '../local_hero_transform.dart' show LocalHero; 8 | import 'card_grid_view.dart' show CardGridView; 9 | import 'card_list_view.dart' show CardListView; 10 | import 'local_hero.dart' show LocalHero; 11 | 12 | /// A widget that displays items in either grid or list view with hero animations. 13 | /// 14 | /// This widget provides a tabbed interface where users can switch between: 15 | /// - Grid view (first tab) 16 | /// - List view (second tab) 17 | /// 18 | /// All transitions between views are animated using Hero widgets. 19 | class LocalHeroViews extends StatefulWidget { 20 | /// Creates a LocalHeroViews widget. 21 | /// 22 | /// Required parameters: 23 | /// - [itemCount]: Number of items to display 24 | /// - [itemsModel]: Data model for each card 25 | /// - [tabController]: Controls the tab view 26 | /// - [onPressedCard]: Callback when a card is pressed 27 | /// 28 | /// Optional parameters: 29 | /// - [designSize]: Design size for responsive UI.The value by default Size(428, 926) 30 | /// - [transitionDuration]:Duration for transition animations. The value by default Duration(milliseconds: 1100) 31 | /// - [textDirection]: Text direction (defaults to ltr) 32 | const LocalHeroViews({ 33 | super.key, 34 | required this.itemCount, 35 | required this.itemsModel, 36 | required this.tabController, 37 | required this.onPressedCard, 38 | this.designSize, 39 | this.transitionDuration, 40 | this.textDirection = TextDirection.ltr, 41 | }); 42 | 43 | final Size? designSize; 44 | final int itemCount; 45 | final ItemsModel Function(int index) itemsModel; 46 | final TextDirection textDirection; 47 | final TabController tabController; 48 | final Duration? transitionDuration; 49 | final CustomOnPressedFavoriteIcon onPressedCard; 50 | 51 | @override 52 | State createState() => _LocalHeroViewsState(); 53 | } 54 | 55 | class _LocalHeroViewsState extends State with SingleTickerProviderStateMixin { 56 | @override 57 | Widget build(BuildContext context) { 58 | return ScreenUtilInit( 59 | designSize: 60 | widget.designSize ?? context.designSize, // Set design size for responsive layout. 61 | minTextAdapt: true, // Allow text to adapt to screen size. 62 | enableScaleText: () => false, // Disable text scaling. 63 | splitScreenMode: true, // Enable split screen mode for responsive design. 64 | builder: (context, child) { 65 | return LocalHero( 66 | controller: widget.tabController, 67 | pages: [ 68 | // Grid View Tab 69 | GridView.count( 70 | crossAxisCount: 2, 71 | childAspectRatio: 16 / 21.5, 72 | padding: EdgeInsets.all(8.0.w), 73 | keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag, 74 | children: List.generate(widget.itemCount, (index) { 75 | return LayoutBuilder(builder: (context, constraints) { 76 | return CardGridView( 77 | onPressedCard: widget.onPressedCard, 78 | index: index, 79 | itemsModel: widget.itemsModel(index), 80 | tagHero: index, 81 | textDirection: widget.textDirection, 82 | ); 83 | }); 84 | }), 85 | ), 86 | 87 | // List View Tab 88 | ListView.builder( 89 | padding: const EdgeInsets.only(top: 10, right: 10, left: 10), 90 | itemCount: widget.itemCount, 91 | itemBuilder: (context, index) { 92 | return CardListView( 93 | onPressedCard: widget.onPressedCard, 94 | index: index, 95 | itemsModel: widget.itemsModel(index), 96 | tagHero: index.toString(), 97 | textDirection: widget.textDirection, 98 | ); 99 | }, 100 | ), 101 | ], 102 | ); 103 | }); 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /example/windows/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Project-level configuration. 2 | cmake_minimum_required(VERSION 3.14) 3 | project(example LANGUAGES CXX) 4 | 5 | # The name of the executable created for the application. Change this to change 6 | # the on-disk name of your application. 7 | set(BINARY_NAME "example") 8 | 9 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent 10 | # versions of CMake. 11 | cmake_policy(VERSION 3.14...3.25) 12 | 13 | # Define build configuration option. 14 | get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) 15 | if(IS_MULTICONFIG) 16 | set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" 17 | CACHE STRING "" FORCE) 18 | else() 19 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 20 | set(CMAKE_BUILD_TYPE "Debug" CACHE 21 | STRING "Flutter build mode" FORCE) 22 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 23 | "Debug" "Profile" "Release") 24 | endif() 25 | endif() 26 | # Define settings for the Profile build mode. 27 | set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") 28 | set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") 29 | set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") 30 | set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") 31 | 32 | # Use Unicode for all projects. 33 | add_definitions(-DUNICODE -D_UNICODE) 34 | 35 | # Compilation settings that should be applied to most targets. 36 | # 37 | # Be cautious about adding new options here, as plugins use this function by 38 | # default. In most cases, you should add new options to specific targets instead 39 | # of modifying this function. 40 | function(APPLY_STANDARD_SETTINGS TARGET) 41 | target_compile_features(${TARGET} PUBLIC cxx_std_17) 42 | target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") 43 | target_compile_options(${TARGET} PRIVATE /EHsc) 44 | target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") 45 | target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") 46 | endfunction() 47 | 48 | # Flutter library and tool build rules. 49 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 50 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 51 | 52 | # Application build; see runner/CMakeLists.txt. 53 | add_subdirectory("runner") 54 | 55 | 56 | # Generated plugin build rules, which manage building the plugins and adding 57 | # them to the application. 58 | include(flutter/generated_plugins.cmake) 59 | 60 | 61 | # === Installation === 62 | # Support files are copied into place next to the executable, so that it can 63 | # run in place. This is done instead of making a separate bundle (as on Linux) 64 | # so that building and running from within Visual Studio will work. 65 | set(BUILD_BUNDLE_DIR "$") 66 | # Make the "install" step default, as it's required to run. 67 | set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) 68 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 69 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 70 | endif() 71 | 72 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 73 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") 74 | 75 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 76 | COMPONENT Runtime) 77 | 78 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 79 | COMPONENT Runtime) 80 | 81 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 82 | COMPONENT Runtime) 83 | 84 | if(PLUGIN_BUNDLED_LIBRARIES) 85 | install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" 86 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 87 | COMPONENT Runtime) 88 | endif() 89 | 90 | # Copy the native assets provided by the build.dart from all packages. 91 | set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/") 92 | install(DIRECTORY "${NATIVE_ASSETS_DIR}" 93 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 94 | COMPONENT Runtime) 95 | 96 | # Fully re-copy the assets directory on each build to avoid having stale files 97 | # from a previous install. 98 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 99 | install(CODE " 100 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 101 | " COMPONENT Runtime) 102 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 103 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 104 | 105 | # Install the AOT library on non-Debug builds only. 106 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 107 | CONFIGURATIONS Profile;Release 108 | COMPONENT Runtime) 109 | -------------------------------------------------------------------------------- /lib/src/card_grid_view.dart: -------------------------------------------------------------------------------- 1 | /* File: local_hero_transform 2 | Version: 1.0.6 3 | */ 4 | 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter_screenutil/flutter_screenutil.dart'; 7 | import 'package:local_hero_transform/src/utils.dart' 8 | show ContextExtension, CustomOnPressedFavoriteIcon, imageHeightListView, paddingHorizontal; 9 | 10 | import '../local_hero_transform.dart'; 11 | 12 | /// A card widget designed for grid view with hero animation capabilities. 13 | class CardGridView extends StatelessWidget { 14 | /// Creates a CardGrid widget. 15 | /// 16 | /// Required parameters: 17 | /// - [tagHero]: Unique tag for hero animation 18 | /// - [itemsModel]: Data model for the card 19 | /// - [index]: Index of this card 20 | /// - [textDirection]: Text direction for layout 21 | /// - [onPressedCard]: Callback when card is pressed 22 | const CardGridView({ 23 | super.key, 24 | required this.tagHero, 25 | required this.itemsModel, 26 | required this.index, 27 | required this.textDirection, 28 | required this.onPressedCard, 29 | }); 30 | 31 | final int tagHero; 32 | final ItemsModel itemsModel; 33 | final int index; 34 | final TextDirection textDirection; 35 | final CustomOnPressedFavoriteIcon onPressedCard; 36 | 37 | @override 38 | Widget build(BuildContext context) { 39 | double beginAnimationWidth = (context.width * 0.5) - (paddingHorizontal * 2) - 16 / 21.5; 40 | double iconHeight = context.isTablet ? 18.w : 12.w; 41 | 42 | return LayoutBuilder(builder: (context, constraints) { 43 | /// widthGridCard it's equal width grid card 44 | double widthCard = constraints.maxWidth - paddingHorizontal * 2; 45 | 46 | return Hero( 47 | tag: tagHero, 48 | flightShuttleBuilder: ( 49 | flightContext, 50 | animation, 51 | flightDirection, 52 | fromHeroContext, 53 | toHeroContext, 54 | ) { 55 | final positionRight = Tween(begin: 100, end: 10).animate(animation); 56 | final positionBottom = Tween(begin: 50, end: 50).animate(animation); 57 | 58 | final widthLisViewCard = (fromHeroContext.findRenderObject() as RenderBox).size.width; 59 | 60 | final animationHeight = Tween(begin: 90, end: 300).animate(animation); 61 | 62 | final animationWidth = Tween(begin: 90.w, end: widthCard).animate(animation); 63 | 64 | final favoriteIconPosition = Tween( 65 | begin: widthLisViewCard - 90.w, 66 | end: iconHeight, 67 | ).animate(animation); 68 | 69 | final favoriteIconHeightPosition = Tween( 70 | begin: (imageHeightListView / 6).w, 71 | end: iconHeight, 72 | ).animate(animation); 73 | 74 | return AnimatedBuilder( 75 | animation: animation, 76 | builder: (context, child) { 77 | return LayoutBuilder(builder: (context, constraints) { 78 | return BaseHeroCard( 79 | cardWidth: beginAnimationWidth, 80 | onPressedCard: onPressedCard, 81 | textDirection: textDirection, 82 | favoriteIconHeightPosition: favoriteIconHeightPosition.value, 83 | favoriteIconPosition: favoriteIconPosition.value, 84 | itemsModel: itemsModel, 85 | index: index, 86 | heightImage: animationHeight.value, 87 | widthImage: animationWidth.value, 88 | bottomTitle: positionBottom.value.w, 89 | rightTitle: positionRight.value.w, 90 | rightPrice: positionRight.value.w, 91 | ); 92 | }); 93 | }, 94 | ); 95 | }, 96 | createRectTween: (Rect? begin, Rect? end) { 97 | return MaterialRectCenterArcTween(begin: begin, end: end); 98 | }, 99 | child: LayoutBuilder( 100 | builder: (context, constraints) { 101 | return BaseHeroCard( 102 | cardWidth: beginAnimationWidth, 103 | onPressedCard: onPressedCard, 104 | textDirection: textDirection, 105 | favoriteIconHeightPosition: iconHeight, 106 | favoriteIconPosition: iconHeight, 107 | itemsModel: itemsModel, 108 | index: index, 109 | heightImage: 300, 110 | widthImage: widthCard, 111 | bottomTitle: 50.w, 112 | rightTitle: 10.w, 113 | rightPrice: 10.w, 114 | ); 115 | }, 116 | ), 117 | ); 118 | }); 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /lib/src/loading_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_screenutil/flutter_screenutil.dart'; 3 | import 'package:local_hero_transform/src/card_style_mode.dart'; 4 | 5 | import 'shimmer.dart'; 6 | import 'utils.dart'; 7 | 8 | class ShimmerBaseHeroCard extends StatelessWidget { 9 | final double heightImage; 10 | final double widthImage; 11 | final double bottomTitle; 12 | final double rightTitle; 13 | final double rightPrice; 14 | final double favoriteIconPosition; 15 | final double favoriteIconHeightPosition; 16 | final TextDirection textDirection; 17 | final double cardWidth; 18 | final CardStyleMode cardStyleMode; 19 | 20 | const ShimmerBaseHeroCard({ 21 | super.key, 22 | required this.heightImage, 23 | required this.widthImage, 24 | required this.bottomTitle, 25 | required this.rightTitle, 26 | required this.rightPrice, 27 | required this.favoriteIconPosition, 28 | required this.favoriteIconHeightPosition, 29 | required this.textDirection, 30 | required this.cardWidth, 31 | required this.cardStyleMode, 32 | }); 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | return ConstrainedBox( 37 | constraints: BoxConstraints(maxHeight: heightImage), 38 | child: Container( 39 | decoration: BoxDecoration( 40 | border: Border.all(color: Colors.white.withValues(alpha: 0.1)), 41 | boxShadow: [ 42 | BoxShadow( 43 | blurRadius: 10, 44 | color: const Color(0xFF3A5160).withValues(alpha: 0.1), 45 | offset: const Offset(0, 5), 46 | ), 47 | ], 48 | color: cardStyleMode.cardColor, 49 | borderRadius: BorderRadius.circular(24.0.r), 50 | ), 51 | margin: EdgeInsets.symmetric(horizontal: paddingHorizontal, vertical: paddingVertical), 52 | child: Stack( 53 | textDirection: textDirection, 54 | children: [ 55 | // Shimmer Placeholder for Image 56 | Padding( 57 | padding: EdgeInsets.all(8.0.w), 58 | child: CustomShimmer( 59 | isDark: cardStyleMode.isDarkMode, 60 | animationShimmerColor: cardStyleMode.animationShimmerColor, 61 | backgroundColor: cardStyleMode.itemColor, 62 | height: widthImage - paddingImageAll * 2, 63 | width: widthImage - paddingImageAll * 2, 64 | borderRadius: BorderRadius.circular(16.r), 65 | ), 66 | ), 67 | 68 | // Shimmer Placeholder for Name 69 | PositionedDirectional( 70 | bottom: bottomTitle, 71 | start: rightTitle, 72 | end: 10.w, 73 | child: CustomShimmer( 74 | isDark: cardStyleMode.isDarkMode, 75 | animationShimmerColor: cardStyleMode.animationShimmerColor, 76 | backgroundColor: cardStyleMode.itemColor, 77 | height: 12.h, 78 | width: cardWidth * 0.6, 79 | borderRadius: BorderRadius.circular(4.r), 80 | ), 81 | ), 82 | 83 | // Shimmer Placeholder for Title 84 | PositionedDirectional( 85 | bottom: (bottomTitle / 1.7), 86 | start: rightPrice, 87 | end: rightPrice, 88 | child: SizedBox( 89 | width: cardWidth * 0.8, 90 | child: CustomShimmer( 91 | isDark: cardStyleMode.isDarkMode, 92 | animationShimmerColor: cardStyleMode.animationShimmerColor, 93 | backgroundColor: cardStyleMode.itemColor, 94 | height: 10.h, 95 | width: cardWidth * 0.5, 96 | borderRadius: BorderRadius.circular(4.r), 97 | ), 98 | ), 99 | ), 100 | 101 | // Shimmer Placeholder for Subtitle 102 | PositionedDirectional( 103 | bottom: bottomTitle / 6, 104 | start: rightPrice, 105 | end: rightPrice, 106 | child: SizedBox( 107 | width: cardWidth * 0.8, 108 | child: CustomShimmer( 109 | isDark: cardStyleMode.isDarkMode, 110 | animationShimmerColor: cardStyleMode.animationShimmerColor, 111 | backgroundColor: cardStyleMode.itemColor, 112 | height: 8.h, 113 | width: cardWidth * 0.4, 114 | borderRadius: BorderRadius.circular(4.r), 115 | ), 116 | ), 117 | ), 118 | ], 119 | ), 120 | ), 121 | ); 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /lib/src/shimmer.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CustomShimmer extends StatefulWidget { 4 | const CustomShimmer({ 5 | super.key, 6 | this.child, 7 | this.isCircle = false, 8 | this.borderAll, 9 | this.borderRadius, 10 | this.backgroundColor, 11 | this.animationShimmerColor, 12 | this.height, 13 | this.width, 14 | required this.isDark, 15 | }); 16 | 17 | final Widget? child; 18 | final bool isCircle; 19 | final double? borderAll; 20 | final Color? backgroundColor; 21 | final Color? animationShimmerColor; 22 | final BorderRadiusGeometry? borderRadius; 23 | final double? height; 24 | final double? width; 25 | final bool isDark; 26 | 27 | @override 28 | State createState() => _CustomShimmerState(); 29 | } 30 | 31 | class _CustomShimmerState extends State with SingleTickerProviderStateMixin { 32 | late AnimationController _animationController; 33 | 34 | @override 35 | void initState() { 36 | super.initState(); 37 | _animationController = AnimationController.unbounded(vsync: this) 38 | ..repeat(min: -0.5, max: 1.5, period: const Duration(milliseconds: 1200)); 39 | } 40 | 41 | @override 42 | void dispose() { 43 | _animationController.dispose(); 44 | super.dispose(); 45 | } 46 | 47 | LinearGradient _getDarkGradient() { 48 | final darkColor = widget.backgroundColor ?? HexColor('#0D0F15'); 49 | final shimmerColor = widget.animationShimmerColor ?? HexColor('#131822'); 50 | 51 | return LinearGradient( 52 | colors: [ 53 | darkColor.withValues(alpha: 0.99), 54 | shimmerColor, 55 | darkColor.withValues(alpha: 0.99), 56 | ], 57 | stops: const [0.1, 0.2, 0.4], 58 | begin: const Alignment(-1.0, -0.3), 59 | end: const Alignment(1.0, 0.3), 60 | tileMode: TileMode.clamp, 61 | ); 62 | } 63 | 64 | LinearGradient _getLightGradient() { 65 | final lightColor = widget.backgroundColor ?? const Color.fromARGB(255, 226, 226, 237); 66 | final shimmerColor = widget.animationShimmerColor ?? lightColor.withValues(alpha: 0.5); 67 | 68 | return LinearGradient( 69 | colors: [ 70 | lightColor.withValues(alpha: 0.99), 71 | shimmerColor, 72 | lightColor.withValues(alpha: 0.99), 73 | ], 74 | stops: const [0.1, 0.3, 0.4], 75 | begin: const Alignment(-1.0, -0.3), 76 | end: const Alignment(1.0, 0.3), 77 | tileMode: TileMode.clamp, 78 | ); 79 | } 80 | 81 | @override 82 | Widget build(BuildContext context) { 83 | final brightness = MediaQuery.platformBrightnessOf(context); 84 | 85 | return AnimatedBuilder( 86 | animation: _animationController, 87 | builder: (BuildContext context, Widget? child) { 88 | final animationValue = _animationController.value; 89 | final localChild = widget.child == null; 90 | 91 | return Container( 92 | height: localChild ? widget.height : null, 93 | width: localChild ? widget.width : null, 94 | decoration: BoxDecoration( 95 | borderRadius: getRadius(), 96 | shape: widget.isCircle ? BoxShape.circle : BoxShape.rectangle, 97 | gradient: _getGradient(brightness, animationValue), 98 | ), 99 | child: widget.child, 100 | ); 101 | }, 102 | ); 103 | } 104 | 105 | LinearGradient _getGradient(Brightness brightness, double animationValue) { 106 | final baseGradient = widget.isDark ? _getDarkGradient() : _getLightGradient(); 107 | 108 | return LinearGradient( 109 | colors: baseGradient.colors, 110 | stops: baseGradient.stops, 111 | begin: baseGradient.begin, 112 | end: baseGradient.end, 113 | transform: _SlidingGradientTransform( 114 | slidePercent: animationValue, 115 | ), 116 | ); 117 | } 118 | 119 | BorderRadiusGeometry? getRadius() { 120 | return widget.isCircle 121 | ? null 122 | : widget.borderRadius ?? BorderRadius.circular(widget.borderAll ?? 10); 123 | } 124 | } 125 | 126 | class _SlidingGradientTransform extends GradientTransform { 127 | const _SlidingGradientTransform({required this.slidePercent}); 128 | final double slidePercent; 129 | 130 | @override 131 | Matrix4? transform(Rect bounds, {TextDirection? textDirection}) { 132 | return Matrix4.translationValues(bounds.width * slidePercent, 0.0, 0.0); 133 | } 134 | } 135 | 136 | class HexColor extends Color { 137 | HexColor(final String hexColor) : super(_getColorFromHex(hexColor)); 138 | 139 | static int _getColorFromHex(String hexColor) { 140 | hexColor = hexColor.toUpperCase().replaceAll('#', ''); 141 | if (hexColor.length == 6) { 142 | hexColor = 'FF$hexColor'; 143 | } 144 | return int.parse(hexColor, radix: 16); 145 | } 146 | } 147 | --------------------------------------------------------------------------------