Commit 7cb851c0 authored by LinhNP's avatar LinhNP

update code

parent d7627343
This source diff could not be displayed because it is too large. You can view the blob instead.
/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/abc.txt /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/nudenet.onnx /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/lisa.jpg /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/shaders/ink_sparkle.frag /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.json /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.bin /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/FontManifest.json /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/NOTICES.Z: /Users/linhnp/flutter-project/demo_nudedetector/pubspec.yaml /Users/linhnp/flutter-project/demo_nudedetector/ios/Runner/Info.plist /Users/linhnp/flutter-project/demo_nudedetector/ios/Flutter/AppFrameworkInfo.plist /Users/linhnp/flutter-project/demo_nudedetector/assets/abc.txt /Users/linhnp/flutter-project/demo_nudedetector/assets/nudenet.onnx /Users/linhnp/flutter-project/demo_nudedetector/assets/lisa.jpg /Users/linhnp/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/assets/CupertinoIcons.ttf /Users/linhnp/flutter/bin/cache/artifacts/material_fonts/MaterialIcons-Regular.otf /Users/linhnp/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag /Users/linhnp/.pub-cache/hosted/pub.dev/async-2.11.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/characters-1.3.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/clock-1.1.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/collection-1.18.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/fake_async-1.3.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/ffi-2.1.2/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker-10.0.4/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.3/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/meta-1.12.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path-1.9.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler-11.3.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.7/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_platform_interface-4.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/source_span-1.10.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/test_api-0.7.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/vector_math-2.1.4/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/vm_service-14.2.1/LICENSE /Users/linhnp/flutter/bin/cache/pkg/sky_engine/LICENSE /Users/linhnp/flutter/packages/flutter/LICENSE
\ No newline at end of file
/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/abc.txt /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/nudenet.onnx /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/lisa1.jpg /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/shaders/ink_sparkle.frag /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.json /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.bin /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/FontManifest.json /Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/NOTICES.Z: /Users/linhnp/flutter-project/demo_nudedetector/pubspec.yaml /Users/linhnp/flutter-project/demo_nudedetector/ios/Runner/Info.plist /Users/linhnp/flutter-project/demo_nudedetector/ios/Flutter/AppFrameworkInfo.plist /Users/linhnp/flutter-project/demo_nudedetector/assets/abc.txt /Users/linhnp/flutter-project/demo_nudedetector/assets/nudenet.onnx /Users/linhnp/flutter-project/demo_nudedetector/assets/lisa1.jpg /Users/linhnp/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/assets/CupertinoIcons.ttf /Users/linhnp/flutter/bin/cache/artifacts/material_fonts/MaterialIcons-Regular.otf /Users/linhnp/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag /Users/linhnp/.pub-cache/hosted/pub.dev/async-2.11.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/characters-1.3.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/clock-1.1.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/collection-1.18.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/fake_async-1.3.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/ffi-2.1.2/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker-10.0.4/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.3/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/meta-1.12.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path-1.9.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider-2.1.3/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_android-2.2.6/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler-11.3.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.7/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_platform_interface-4.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/platform-3.1.5/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/source_span-1.10.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/test_api-0.7.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/vector_math-2.1.4/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/vm_service-14.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/win32-5.5.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/xdg_directories-1.0.4/LICENSE /Users/linhnp/flutter/bin/cache/pkg/sky_engine/LICENSE /Users/linhnp/flutter/packages/flutter/LICENSE
\ No newline at end of file
{"inputs":["/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/package_config_subset"],"outputs":[]}
\ No newline at end of file
{"inputs":["/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/package_config_subset"],"outputs":["/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/flutter_build/dart_plugin_registrant.dart"]}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
["/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/Flutter.framework/Flutter","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/vm_snapshot_data","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/isolate_snapshot_data","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/kernel_blob.bin","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/App","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/Info.plist","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/abc.txt","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/nudenet.onnx","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/lisa.jpg","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/shaders/ink_sparkle.frag","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.json","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.bin","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/FontManifest.json","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/NOTICES.Z"]
\ No newline at end of file
["/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/Flutter.framework/Flutter","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/vm_snapshot_data","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/isolate_snapshot_data","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/kernel_blob.bin","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/App","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/Info.plist","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/abc.txt","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/nudenet.onnx","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/assets/lisa1.jpg","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/shaders/ink_sparkle.frag","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.json","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.bin","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/FontManifest.json","/Users/linhnp/Library/Developer/Xcode/DerivedData/Runner-gukqmhghwshhktcudlscvczuagpa/Build/Products/Debug-iphoneos/App.framework/flutter_assets/NOTICES.Z"]
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
{"inputs":["/Users/linhnp/flutter/bin/internal/engine.version","/Users/linhnp/flutter/bin/internal/engine.version","/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/flutter_build/d96423e4fce78d1828d242c4023865c5/app.dill","/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/flutter_build/d96423e4fce78d1828d242c4023865c5/App.framework/App","/Users/linhnp/flutter-project/demo_nudedetector/pubspec.yaml","/Users/linhnp/flutter/packages/flutter_tools/lib/src/build_system/targets/icon_tree_shaker.dart","/Users/linhnp/flutter/bin/internal/engine.version","/Users/linhnp/flutter/bin/internal/engine.version","/Users/linhnp/flutter/packages/flutter_tools/lib/src/build_system/tools/shader_compiler.dart","/Users/linhnp/flutter/bin/internal/engine.version","/Users/linhnp/flutter-project/demo_nudedetector/pubspec.yaml","/Users/linhnp/flutter-project/demo_nudedetector/ios/Runner/Info.plist","/Users/linhnp/flutter-project/demo_nudedetector/ios/Flutter/AppFrameworkInfo.plist","/Users/linhnp/flutter-project/demo_nudedetector/assets/abc.txt","/Users/linhnp/flutter-project/demo_nudedetector/assets/nudenet.onnx","/Users/linhnp/flutter-project/demo_nudedetector/assets/lisa1.jpg","/Users/linhnp/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/assets/CupertinoIcons.ttf","/Users/linhnp/flutter/bin/cache/artifacts/material_fonts/MaterialIcons-Regular.otf","/Users/linhnp/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag","/Users/linhnp/.pub-cache/hosted/pub.dev/async-2.11.0/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/characters-1.3.0/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/clock-1.1.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/collection-1.18.0/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/fake_async-1.3.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/ffi-2.1.2/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker-10.0.4/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.3/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/meta-1.12.0/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/path-1.9.0/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider-2.1.3/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_android-2.2.6/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler-11.3.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.7/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_platform_interface-4.2.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/platform-3.1.5/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/source_span-1.10.0/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/test_api-0.7.0/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/vector_math-2.1.4/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/vm_service-14.2.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/win32-5.5.1/LICENSE","/Users/linhnp/.pub-cache/hosted/pub.dev/xdg_directories-1.0.4/LICENSE","/Users/linhnp/flutter/bin/cache/pkg/sky_engine/LICENSE","/Users/linhnp/flutter/packages/flutter/LICENSE"],"outputs":["/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/vm_snapshot_data","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/isolate_snapshot_data","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/kernel_blob.bin","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/App","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/Info.plist","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/assets/abc.txt","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/assets/nudenet.onnx","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/assets/lisa1.jpg","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/shaders/ink_sparkle.frag","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.json","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.bin","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/FontManifest.json","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/NOTICES.Z"]}
\ No newline at end of file
{"inputs":["/Users/linhnp/flutter/packages/flutter_tools/lib/src/build_system/targets/ios.dart"],"outputs":["/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/flutter_build/d96423e4fce78d1828d242c4023865c5/App.framework/App"]}
\ No newline at end of file
{"inputs":["/Users/linhnp/flutter/packages/flutter_tools/lib/src/build_system/targets/ios.dart","/Users/linhnp/flutter/bin/internal/engine.version"],"outputs":["/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/Flutter.framework/Flutter"]}
\ No newline at end of file
/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/assets/abc.txt /Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/assets/nudenet.onnx /Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/assets/lisa1.jpg /Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf /Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf /Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/shaders/ink_sparkle.frag /Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.json /Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.bin /Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/FontManifest.json /Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/NOTICES.Z: /Users/linhnp/flutter-project/demo_nudedetector/pubspec.yaml /Users/linhnp/flutter-project/demo_nudedetector/ios/Runner/Info.plist /Users/linhnp/flutter-project/demo_nudedetector/ios/Flutter/AppFrameworkInfo.plist /Users/linhnp/flutter-project/demo_nudedetector/assets/abc.txt /Users/linhnp/flutter-project/demo_nudedetector/assets/nudenet.onnx /Users/linhnp/flutter-project/demo_nudedetector/assets/lisa1.jpg /Users/linhnp/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/assets/CupertinoIcons.ttf /Users/linhnp/flutter/bin/cache/artifacts/material_fonts/MaterialIcons-Regular.otf /Users/linhnp/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag /Users/linhnp/.pub-cache/hosted/pub.dev/async-2.11.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/characters-1.3.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/clock-1.1.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/collection-1.18.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/fake_async-1.3.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/ffi-2.1.2/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker-10.0.4/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.3/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/meta-1.12.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path-1.9.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider-2.1.3/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_android-2.2.6/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler-11.3.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.7/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_platform_interface-4.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/platform-3.1.5/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/source_span-1.10.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/test_api-0.7.0/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/vector_math-2.1.4/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/vm_service-14.2.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/win32-5.5.1/LICENSE /Users/linhnp/.pub-cache/hosted/pub.dev/xdg_directories-1.0.4/LICENSE /Users/linhnp/flutter/bin/cache/pkg/sky_engine/LICENSE /Users/linhnp/flutter/packages/flutter/LICENSE
\ No newline at end of file
{"inputs":["/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/package_config_subset"],"outputs":["/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/flutter_build/dart_plugin_registrant.dart"]}
\ No newline at end of file
/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/flutter_build/d96423e4fce78d1828d242c4023865c5/native_assets.yaml:
\ No newline at end of file
{"inputs":["/Users/linhnp/flutter/packages/flutter_tools/lib/src/build_system/targets/native_assets.dart","/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/package_config_subset"],"outputs":["/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/flutter_build/d96423e4fce78d1828d242c4023865c5/native_assets.yaml","/Users/linhnp/flutter-project/demo_nudedetector/.dart_tool/flutter_build/d96423e4fce78d1828d242c4023865c5/native_assets.yaml"]}
\ No newline at end of file
format-version:
- 1
- 0
- 0
native-assets: {}
\ No newline at end of file
["/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/Flutter.framework/Flutter","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/vm_snapshot_data","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/isolate_snapshot_data","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/kernel_blob.bin","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/App","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/Info.plist","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/assets/abc.txt","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/assets/nudenet.onnx","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/assets/lisa1.jpg","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/shaders/ink_sparkle.frag","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.json","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/AssetManifest.bin","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/FontManifest.json","/Users/linhnp/flutter-project/demo_nudedetector/build/ios/Debug-iphoneos/App.framework/flutter_assets/NOTICES.Z"]
\ No newline at end of file
//
// Generated file. Do not edit.
// This file is generated from template in file `flutter_tools/lib/src/flutter_plugins.dart`.
//
// @dart = 3.4
import 'dart:io'; // flutter_ignore: dart_io_import.
import 'package:path_provider_android/path_provider_android.dart';
import 'package:path_provider_foundation/path_provider_foundation.dart';
import 'package:path_provider_linux/path_provider_linux.dart';
import 'package:path_provider_foundation/path_provider_foundation.dart';
import 'package:path_provider_windows/path_provider_windows.dart';
@pragma('vm:entry-point')
class _PluginRegistrant {
@pragma('vm:entry-point')
static void register() {
if (Platform.isAndroid) {
try {
PathProviderAndroid.registerWith();
} catch (err) {
print(
'`path_provider_android` threw an error: $err. '
'The app may not function as expected until you remove this plugin from pubspec.yaml'
);
}
} else if (Platform.isIOS) {
try {
PathProviderFoundation.registerWith();
} catch (err) {
print(
'`path_provider_foundation` threw an error: $err. '
'The app may not function as expected until you remove this plugin from pubspec.yaml'
);
}
} else if (Platform.isLinux) {
try {
PathProviderLinux.registerWith();
} catch (err) {
print(
'`path_provider_linux` threw an error: $err. '
'The app may not function as expected until you remove this plugin from pubspec.yaml'
);
}
} else if (Platform.isMacOS) {
try {
PathProviderFoundation.registerWith();
} catch (err) {
print(
'`path_provider_foundation` threw an error: $err. '
'The app may not function as expected until you remove this plugin from pubspec.yaml'
);
}
} else if (Platform.isWindows) {
try {
PathProviderWindows.registerWith();
} catch (err) {
print(
'`path_provider_windows` threw an error: $err. '
'The app may not function as expected until you remove this plugin from pubspec.yaml'
);
}
}
}
}
......@@ -109,6 +109,42 @@
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "path_provider",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider-2.1.3",
"packageUri": "lib/",
"languageVersion": "3.1"
},
{
"name": "path_provider_android",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_android-2.2.6",
"packageUri": "lib/",
"languageVersion": "3.4"
},
{
"name": "path_provider_foundation",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "path_provider_linux",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1",
"packageUri": "lib/",
"languageVersion": "2.19"
},
{
"name": "path_provider_platform_interface",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "path_provider_windows",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1",
"packageUri": "lib/",
"languageVersion": "2.19"
},
{
"name": "permission_handler",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler-11.3.1",
......@@ -145,6 +181,12 @@
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "platform",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/platform-3.1.5",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "plugin_platform_interface",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8",
......@@ -205,6 +247,18 @@
"packageUri": "lib/",
"languageVersion": "3.3"
},
{
"name": "win32",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/win32-5.5.1",
"packageUri": "lib/",
"languageVersion": "3.4"
},
{
"name": "xdg_directories",
"rootUri": "file:///Users/linhnp/.pub-cache/hosted/pub.dev/xdg_directories-1.0.4",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "demo_nudedetector",
"rootUri": "../",
......@@ -212,7 +266,7 @@
"languageVersion": "3.4"
}
],
"generated": "2024-06-13T01:16:57.495540Z",
"generated": "2024-06-18T04:26:08.379215Z",
"generator": "pub",
"generatorVersion": "3.4.1",
"flutterRoot": "file:///Users/linhnp/flutter",
......
......@@ -58,6 +58,30 @@ path
3.0
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path-1.9.0/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path-1.9.0/lib/
path_provider
3.1
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider-2.1.3/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider-2.1.3/lib/
path_provider_android
3.4
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_android-2.2.6/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_android-2.2.6/lib/
path_provider_foundation
3.2
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/lib/
path_provider_linux
2.19
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/lib/
path_provider_platform_interface
3.0
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/lib/
path_provider_windows
2.19
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/lib/
permission_handler
2.15
file:///Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler-11.3.1/
......@@ -82,6 +106,10 @@ permission_handler_windows
2.12
file:///Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/lib/
platform
3.2
file:///Users/linhnp/.pub-cache/hosted/pub.dev/platform-3.1.5/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/platform-3.1.5/lib/
plugin_platform_interface
3.0
file:///Users/linhnp/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/
......@@ -118,6 +146,14 @@ vm_service
3.3
file:///Users/linhnp/.pub-cache/hosted/pub.dev/vm_service-14.2.1/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/vm_service-14.2.1/lib/
win32
3.4
file:///Users/linhnp/.pub-cache/hosted/pub.dev/win32-5.5.1/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/win32-5.5.1/lib/
xdg_directories
3.0
file:///Users/linhnp/.pub-cache/hosted/pub.dev/xdg_directories-1.0.4/
file:///Users/linhnp/.pub-cache/hosted/pub.dev/xdg_directories-1.0.4/lib/
demo_nudedetector
3.4
file:///Users/linhnp/flutter-project/demo_nudedetector/
......
# This is a generated file; do not edit or check into version control.
path_provider=/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider-2.1.3/
path_provider_android=/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_android-2.2.6/
path_provider_foundation=/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/
path_provider_linux=/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
path_provider_windows=/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/
permission_handler=/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler-11.3.1/
permission_handler_android=/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.7/
permission_handler_apple=/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/
......
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"permission_handler_apple","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/","native_build":true,"dependencies":[]}],"android":[{"name":"permission_handler_android","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.7/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[{"name":"permission_handler_windows","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[]}],"web":[{"name":"permission_handler_html","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.1/","dependencies":[]}]},"dependencyGraph":[{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]}],"date_created":"2024-06-13 08:24:23.930982","version":"3.22.1"}
\ No newline at end of file
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider_foundation","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/","native_build":true,"dependencies":[]}],"android":[{"name":"path_provider_android","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_android-2.2.6/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.7/","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]},{"name":"permission_handler_windows","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[]}],"web":[{"name":"permission_handler_html","path":"/Users/linhnp/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.1/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]}],"date_created":"2024-06-18 15:04:28.626614","version":"3.22.1"}
\ No newline at end of file
......@@ -8,7 +8,7 @@ class EngineBase
public:
EngineBase();
virtual void InitEngine();
virtual void InferenceEngine(cv::Mat &image){};
virtual void InferenceEngine(cv::Mat &image, const char* imagePath){};
virtual cv::Mat PreprocessImage(cv::Mat &image){return image;};
std::vector<std::string> labels;
Ort::Session *engine;
......
......@@ -23,7 +23,7 @@ void NudeDetector::InitEngine()
}
}
void NudeDetector::InferenceEngine(cv::Mat &image)
void NudeDetector::InferenceEngine(cv::Mat &image,const char* imagePath)
{
cv::Mat preprocessImg = PreprocessImage(image);
cv::Mat blobImg = cv::dnn::blobFromImage(preprocessImg,NORM);
......@@ -40,7 +40,7 @@ void NudeDetector::InferenceEngine(cv::Mat &image)
cv::Mat output = cv::Mat(outputNodeDims[1], outputNodeDims[2], CV_32F, outputData);
output = output.t();
LOG_C("width: " << output.cols << " height: " << output.rows);
PosprocessImage(image,output);
PosprocessImage(image,output,imagePath);
}
cv::Mat NudeDetector::PreprocessImage(cv::Mat &image)
......@@ -53,7 +53,7 @@ cv::Mat NudeDetector::PreprocessImage(cv::Mat &image)
return result;
}
std::vector<NudeDetector::NudeInfo> NudeDetector::PosprocessImage(cv::Mat &image, cv::Mat &sessionResult)
std::vector<NudeDetector::NudeInfo> NudeDetector::PosprocessImage(cv::Mat &image, cv::Mat &sessionResult,const char* imagePath)
{
LOG_C(sessionResult.cols << " " << sessionResult.rows);
std::vector<NudeInfo> results;
......@@ -107,7 +107,17 @@ std::vector<NudeDetector::NudeInfo> NudeDetector::PosprocessImage(cv::Mat &image
cv::rectangle(drawing, info.bbox,cv::Scalar(255,0,0),3);
}
}
cv::imwrite("/storage/emulated/0/porn.jpg", drawing);
// cv::imwrite("/storage/emulated/0/porn.jpg", drawing);
LOG_C("image path gen: " <<imagePath);
// cv::imwrite("lisa2.jpg", drawing);
LOG_C("image lisa2: " <<imagePath);
//cv::cvtColor(drawing, drawing, CV_BGR2RGB); // Nếu cần thiết
cv::imwrite(imagePath, drawing);
return results;
}
......
......@@ -36,10 +36,10 @@ public:
};
NudeDetector();
void InitEngine() override;
void InferenceEngine(cv::Mat &image) override;
void InferenceEngine(cv::Mat &image,const char* imagePath) override;
private:
cv::Mat PreprocessImage(cv::Mat &image) override;
std::vector<NudeInfo> PosprocessImage(cv::Mat &image, cv::Mat &sessionResult);
std::vector<NudeInfo> PosprocessImage(cv::Mat &image, cv::Mat &sessionResult,const char* imagePath);
std::vector<NudeInfo> NMS(std::vector<NudeInfo> bboxes);
private:
Ort::RunOptions runOption;
......
PODS:
- Flutter (1.0.0)
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- permission_handler_apple (9.3.0):
- Flutter
DEPENDENCIES:
- Flutter (from `Flutter`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
EXTERNAL SOURCES:
Flutter:
:path: Flutter
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"
permission_handler_apple:
:path: ".symlinks/plugins/permission_handler_apple/ios"
SPEC CHECKSUMS:
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
PODFILE CHECKSUM: 44a20dcded4fc328b465643033e4019d5a4e09ba
......
......@@ -13,8 +13,9 @@
730BDD162C194A6D006297C6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 730BDD152C194A6D006297C6 /* Assets.xcassets */; };
730BDD462C198B91006297C6 /* nudenet.onnx in Resources */ = {isa = PBXBuildFile; fileRef = 730BDD452C198B90006297C6 /* nudenet.onnx */; };
730BDD4B2C199E4F006297C6 /* Runner-Bridging-Header.c in Sources */ = {isa = PBXBuildFile; fileRef = 730BDD4A2C199E4F006297C6 /* Runner-Bridging-Header.c */; };
730BDD4D2C1A839B006297C6 /* lisa.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 730BDD4C2C1A839A006297C6 /* lisa.jpg */; };
730BDD4D2C1A839B006297C6 /* lisa1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 730BDD4C2C1A839A006297C6 /* lisa1.jpg */; };
732B22F22C1679BE0066F3F2 /* anhai2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 732B22F12C1679BE0066F3F2 /* anhai2.cpp */; };
734422C02C213E0400FFF4C8 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 734422BF2C213E0400FFF4C8 /* GeneratedPluginRegistrant.m */; };
7366A9942C17FB8500025EF3 /* opencv2.framework in Embed Libraries */ = {isa = PBXBuildFile; fileRef = 7366A9892C17F8D400025EF3 /* opencv2.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
7366A9BB2C182F3500025EF3 /* opencv2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7366A9892C17F8D400025EF3 /* opencv2.framework */; };
73C1A1002C18475C00D4644C /* libonnxruntime_common.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7366A9DF2C1836B400025EF3 /* libonnxruntime_common.a */; };
......@@ -90,8 +91,10 @@
730BDD452C198B90006297C6 /* nudenet.onnx */ = {isa = PBXFileReference; lastKnownFileType = file; name = nudenet.onnx; path = ../../assets/nudenet.onnx; sourceTree = "<group>"; };
730BDD492C199DFB006297C6 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
730BDD4A2C199E4F006297C6 /* Runner-Bridging-Header.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "Runner-Bridging-Header.c"; sourceTree = "<group>"; };
730BDD4C2C1A839A006297C6 /* lisa.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = lisa.jpg; path = ../../assets/lisa.jpg; sourceTree = "<group>"; };
730BDD4C2C1A839A006297C6 /* lisa1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = lisa1.jpg; path = ../../assets/lisa1.jpg; sourceTree = "<group>"; };
732B22F12C1679BE0066F3F2 /* anhai2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = anhai2.cpp; sourceTree = "<group>"; };
734422BE2C213E0400FFF4C8 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GeneratedPluginRegistrant.h; path = ../../../../StudioProjects/show_image_documents/ios/Runner/GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
734422BF2C213E0400FFF4C8 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GeneratedPluginRegistrant.m; path = ../../../../StudioProjects/show_image_documents/ios/Runner/GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
7366A9892C17F8D400025EF3 /* opencv2.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = opencv2.framework; path = ../../../../Downloads/opencv2.framework; sourceTree = "<group>"; };
7366A9D62C18319100025EF3 /* onnxruntime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = onnxruntime.framework; path = "../../../onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos/static_framework/onnxruntime.framework"; sourceTree = "<group>"; };
7366A9DC2C18347800025EF3 /* onnxruntime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = onnxruntime.framework; path = "../../../../onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos/static_framework/onnxruntime.framework"; sourceTree = "<group>"; };
......@@ -285,14 +288,16 @@
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
children = (
730BDD452C198B90006297C6 /* nudenet.onnx */,
730BDD4C2C1A839A006297C6 /* lisa.jpg */,
730BDD4C2C1A839A006297C6 /* lisa1.jpg */,
730BDD152C194A6D006297C6 /* Assets.xcassets */,
734422BE2C213E0400FFF4C8 /* GeneratedPluginRegistrant.h */,
734422BF2C213E0400FFF4C8 /* GeneratedPluginRegistrant.m */,
7366A9DC2C18347800025EF3 /* onnxruntime.framework */,
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C147021CF9000F007C117D /* Info.plist */,
730665142C16D58E005BED3B /* PrefixHeader.pch */,
730BDD452C198B90006297C6 /* nudenet.onnx */,
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
7366A9892C17F8D400025EF3 /* opencv2.framework */,
730BDD4A2C199E4F006297C6 /* Runner-Bridging-Header.c */,
......@@ -348,6 +353,7 @@
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
7366A96B2C16FCF500025EF3 /* Embed Libraries */,
D7F66A1CEFDF1CEAF33914A8 /* [CP] Copy Pods Resources */,
27B53338C84DFDA2D23C6D44 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
......@@ -413,7 +419,7 @@
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
730BDD462C198B91006297C6 /* nudenet.onnx in Resources */,
730BDD4D2C1A839B006297C6 /* lisa.jpg in Resources */,
730BDD4D2C1A839B006297C6 /* lisa1.jpg in Resources */,
730BDD162C194A6D006297C6 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
......@@ -443,6 +449,23 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
27B53338C84DFDA2D23C6D44 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
......@@ -533,6 +556,7 @@
73C1A1362C184F9C00D4644C /* enginebase.cpp in Sources */,
73C1A1342C184F9C00D4644C /* utils.cpp in Sources */,
730BDD4B2C199E4F006297C6 /* Runner-Bridging-Header.c in Sources */,
734422C02C213E0400FFF4C8 /* GeneratedPluginRegistrant.m in Sources */,
73C1A1352C184F9C00D4644C /* nudedetector.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
......
......@@ -12,18 +12,40 @@ import UIKit
) -> Bool {
if let filePath = Bundle.main.path(forResource: "nudenet", ofType: "onnx") {
print(filePath)
if let imgPath = Bundle.main.path(forResource: "lisa", ofType: "jpg") {
if let imgPath = Bundle.main.path(forResource: "lisa1", ofType: "jpg") {
print(imgPath)
callInitEngine(filePath, imgPath)
// Tạo đường dẫn mới cho ảnh được lưu trong thư mục Documents
if var documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first {
documentsPath = documentsPath + "/lisa_rap.jpg";
callInitEngine(filePath, imgPath, documentsPath)
} else {
print("khong tim thay img")
print("Không tìm thấy đường dẫn thư mục Documents")
}
if let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first {
let imagePath = (documentsPath as NSString).appendingPathComponent("lisa_rap.jpg")
if let image = UIImage(contentsOfFile: imagePath) {
// Đã đọc thành công ảnh từ tệp
print("Đã đọc thành công ảnh từ tệp: \(imagePath)")
// Sử dụng biến `image` để làm gì đó
} else {
print("khong tim thay model")
print("Không thể đọc ảnh từ tệp: \(imagePath)")
}
}
} else {
print("Không tìm thấy ảnh trong bundle")
}
} else {
print("Không tìm thấy file mô hình trong bundle")
}
let controller = window?.rootViewController as! FlutterViewController
let channel = FlutterMethodChannel(name: "com.example.app/native", binaryMessenger: controller.binaryMessenger)
......@@ -53,10 +75,13 @@ import UIKit
}
}
func callInitEngine(_ path: String, _ img: String) {
func callInitEngine(_ path: String, _ img: String, _ documentPath: String) {
path.withCString { cPath in
img.withCString { cImg in
init_engine(UnsafeMutablePointer(mutating: cPath), UnsafeMutablePointer(mutating: cImg))
documentPath.withCString { dPath in
init_engine(UnsafeMutablePointer(mutating: cPath), UnsafeMutablePointer(mutating: cImg), UnsafeMutablePointer(mutating: dPath))
}
}
}
}
......
......@@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Demo Nudedetector</string>
<string>Show Image Documents</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
......@@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>demo_nudedetector</string>
<string>show_image_documents</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
......
void getInput(char* abc);
void init_engine(char* abc, char* xyz);
void init_engine(char* abc, char* xyz, char* mon);
......@@ -38,7 +38,7 @@ void test() {
}
extern "C" __attribute__((visibility("default"))) __attribute__((used))
void init_engine(const char* modelPath, const char* imgPath) {
void init_engine(const char* modelPath, const char* imgPath, const char* documentsPath) {
NudeDetector *nudeEngine = new NudeDetector;
// nudeEngine->modelPath = "/storage/emulated/0/Models/Yolov8/NudeNet/NudeNet.onnx";
......@@ -54,8 +54,16 @@ void init_engine(const char* modelPath, const char* imgPath) {
// LOGR("init engine done");
cv::Mat nudeImage = cv::imread(imgPath);
//drawing
cv::Mat drawing = nudeImage.clone();
LOG_C("documentsPath: " <<documentsPath);
cv::imwrite(documentsPath, drawing);
auto firstBlood = CURRENT_MILIS;
nudeEngine->InferenceEngine(nudeImage);
nudeEngine->InferenceEngine(nudeImage, documentsPath);
// LOGR("first blood: " + std::to_string(CURRENT_MILIS - firstBlood));
auto start = CURRENT_MILIS;
uint total=0;
......@@ -67,22 +75,3 @@ void init_engine(const char* modelPath, const char* imgPath) {
// LOGR("average process time: " + std::to_string(total/100) + "ms");
//LOGR("finished")
}
//extern "C" __attribute__((visibility("default"))) __attribute__((used))
//char* wchar_to_char(const wchar_t* wchar_str) {
// // Đặt locale cho phù hợp để đảm bảo chuyển đổi chính xác
// setlocale(LC_ALL, "");
//
// // Xác định độ dài cần thiết cho chuỗi ký tự đa byte
// size_t needed = wcstombs(NULL, wchar_str, 0) + 1;
//
// // Cấp phát bộ nhớ cho chuỗi ký tự đa byte
// char* char_str = (char*)malloc(needed);
//
// if (char_str != NULL) {
// // Chuyển đổi chuỗi ký tự rộng sang chuỗi ký tự đa byte
// wcstombs(char_str, wchar_str, needed);
// }
//
// return char_str;
//}
import 'dart:ffi';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:flutter/services.dart' show rootBundle;
import 'main.dart';
import 'native_add.dart';
class CheckStorge extends StatefulWidget {
@override
State<StatefulWidget> createState() => _checkStorage();
}
class _checkStorage extends State<CheckStorge> {
@override
Widget build(BuildContext context) {
return TextButton(onPressed: () async {
// var status = await Permission.manageExternalStorage.status;
// //chưa cấp quyền
// if (!status.isGranted) {
// await Permission.manageExternalStorage.request();
// status = await Permission.manageExternalStorage.status;
// // Kiểm tra xem quyền đã được cấp hay chưa
// if (!status.isGranted) {
// print("khong co quyen");
// }else{
// // initEngine();
// nativeAdd(3,4);
// }
//
// }else{
print('on click');
// Tải nội dung của tệp NudeNet.onnx từ thư mục assets
String assetPath = 'assets/nudenet.onnx'; // Thay đổi đường dẫn tệp tại đây
// String? fileContent = await loadAsset(assetPath);
if (true) {
print('Đã tìm thấy tệp $assetPath');
// print('Nội dung file $fileContent');
Pointer<WChar> inputPointer = stringToNativeWChar(assetPath);
initEngine(inputPointer);
// Gọi hàm initEngine() hoặc nativeAdd() tại đây nếu cần
} else {
print("Không tìm thấy tệp $assetPath");
}
Pointer<WChar> inputPointer = stringToNativeWChar(assetPath);
initEngine(inputPointer);
// }
}, child: Text('button'));
}
}
Future<String?> loadAsset(String assetPath) async {
try {
// Sử dụng rootBundle để tải tệp từ thư mục assets
return await rootBundle.loadString(assetPath);
} catch (e) {
print('Lỗi: $e');
return null;
}
}
// import 'dart:ffi';
//
// import 'package:flutter/material.dart';
// import 'package:flutter/services.dart';
// import 'package:permission_handler/permission_handler.dart';
// import 'package:flutter/services.dart' show rootBundle;
//
// import 'main.dart';
// import 'native_add.dart';
//
// class CheckStorge extends StatefulWidget {
// @override
// State<StatefulWidget> createState() => _checkStorage();
// }
//
// class _checkStorage extends State<CheckStorge> {
// @override
// Widget build(BuildContext context) {
// return TextButton(onPressed: () async {
// // var status = await Permission.manageExternalStorage.status;
// // //chưa cấp quyền
// // if (!status.isGranted) {
// // await Permission.manageExternalStorage.request();
// // status = await Permission.manageExternalStorage.status;
// // // Kiểm tra xem quyền đã được cấp hay chưa
// // if (!status.isGranted) {
// // print("khong co quyen");
// // }else{
// // // initEngine();
// // nativeAdd(3,4);
// // }
// //
// // }else{
// print('on click');
// // Tải nội dung của tệp NudeNet.onnx từ thư mục assets
// String assetPath = 'assets/nudenet.onnx'; // Thay đổi đường dẫn tệp tại đây
// // String? fileContent = await loadAsset(assetPath);
//
// if (true) {
//
// print('Đã tìm thấy tệp $assetPath');
// // print('Nội dung file $fileContent');
//
// Pointer<WChar> inputPointer = stringToNativeWChar(assetPath);
// initEngine(inputPointer);
// // Gọi hàm initEngine() hoặc nativeAdd() tại đây nếu cần
// } else {
// print("Không tìm thấy tệp $assetPath");
// }
//
// Pointer<WChar> inputPointer = stringToNativeWChar(assetPath);
// initEngine(inputPointer);
//
// // }
// }, child: Text('button'));
// }
// }
//
//
// Future<String?> loadAsset(String assetPath) async {
// try {
// // Sử dụng rootBundle để tải tệp từ thư mục assets
// return await rootBundle.loadString(assetPath);
// } catch (e) {
// print('Lỗi: $e');
// return null;
// }
// }
//
//
import 'dart:ffi';
import 'dart:io';
import 'package:ffi/ffi.dart';
import 'package:flutter/material.dart';
import 'package:path_provider/path_provider.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:flutter/services.dart';
import 'check_storage.dart';
import 'native_add.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
String data = await MyApp().getAssetFilePath();
print(data); // In nội dung đường dẫn file
// Future<void> main() async {
// WidgetsFlutterBinding.ensureInitialized();
// String data = await MyApp().getAssetFilePath();
// print(data); // In nội dung đường dẫn file
//
// Pointer<WChar> inputPointer = stringToNativeWChar(data);
// initEngine(inputPointer);
//
// runApp(MyApp());
// }
Pointer<WChar> inputPointer = stringToNativeWChar(data);
initEngine(inputPointer);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
static const platform = MethodChannel('com.example.app/native');
Future<String> getAssetFilePath() async {
try {
final String result = await platform.invokeMethod('getAssetFilePath');
return result;
} on PlatformException catch (e) {
print("Failed to read file: '${e.message}'.");
return '';
}
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Native Add Example'),
),
body: AddNumbers(),
title: 'Document Image Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: ImageFromDocuments(),
);
}
}
// class MyApp extends StatelessWidget {
//
// static const platform = MethodChannel('com.example.app/native');
//
// Future<String> getAssetFilePath() async {
// try {
// final String result = await platform.invokeMethod('getAssetFilePath');
// return result;
// } on PlatformException catch (e) {
// print("Failed to read file: '${e.message}'.");
// return '';
// }
// }
//
// @override
// Widget build(BuildContext context) {
// return MaterialApp(
// home: Scaffold(
// appBar: AppBar(
// title: Text('Native Add Example'),
// ),
// body: AddNumbers(),
// ),
// );
// }
// }
class AddNumbers extends StatefulWidget {
@override
_AddNumbersState createState() => _AddNumbersState();
......@@ -104,7 +125,7 @@ class _AddNumbersState extends State<AddNumbers> {
padding: const EdgeInsets.all(16.0),
child: Column(
children: <Widget>[
CheckStorge(),
// CheckStorge(),
TextField(
controller: _controller1,
decoration: InputDecoration(
......@@ -151,3 +172,49 @@ Pointer<WChar> stringToNativeWChar(String str) {
result[units.length] = 0; // Null-terminate the string
return result;
}
class ImageFromDocuments extends StatefulWidget {
@override
_ImageFromDocumentsState createState() => _ImageFromDocumentsState();
}
class _ImageFromDocumentsState extends State<ImageFromDocuments> {
String imagePath = '';
@override
void initState() {
super.initState();
loadDocumentImage();
}
void loadDocumentImage() async {
try {
Directory documentsDirectory = await getApplicationDocumentsDirectory();
String documentsPath = documentsDirectory.path;
String imagePath = '$documentsPath/lisa_rap.jpg';
print("image path document: $imagePath");
setState(() {
this.imagePath = imagePath;
});
} catch (e) {
print('Error loading document image: $e');
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Image from Documents'),
),
body: Center(
child: imagePath.isNotEmpty
? Image.file(File(imagePath))
: Text('Image not found'),
),
);
}
}
\ No newline at end of file
......@@ -5,6 +5,8 @@
import FlutterMacOS
import Foundation
import path_provider_foundation
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
}
......@@ -136,6 +136,54 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.9.0"
path_provider:
dependency: "direct main"
description:
name: path_provider
sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161
url: "https://pub.dev"
source: hosted
version: "2.1.3"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
sha256: bca87b0165ffd7cdb9cad8edd22d18d2201e886d9a9f19b4fb3452ea7df3a72a
url: "https://pub.dev"
source: hosted
version: "2.2.6"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_foundation
sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16
url: "https://pub.dev"
source: hosted
version: "2.4.0"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
url: "https://pub.dev"
source: hosted
version: "2.2.1"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170"
url: "https://pub.dev"
source: hosted
version: "2.2.1"
permission_handler:
dependency: "direct main"
description:
......@@ -184,6 +232,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.2.1"
platform:
dependency: transitive
description:
name: platform
sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
url: "https://pub.dev"
source: hosted
version: "3.1.5"
plugin_platform_interface:
dependency: transitive
description:
......@@ -261,6 +317,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "14.2.1"
win32:
dependency: transitive
description:
name: win32
sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4
url: "https://pub.dev"
source: hosted
version: "5.5.1"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d
url: "https://pub.dev"
source: hosted
version: "1.0.4"
sdks:
dart: ">=3.4.1 <4.0.0"
flutter: ">=3.18.0-18.0.pre.54"
flutter: ">=3.22.0"
......@@ -37,6 +37,7 @@ dependencies:
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.6
permission_handler: ^11.3.1
path_provider: ^2.0.4
dev_dependencies:
flutter_test:
......@@ -64,7 +65,7 @@ flutter:
assets:
- assets/abc.txt
- assets/nudenet.onnx
- assets/lisa.jpg
- assets/lisa1.jpg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment