Flutter ์ค๋ฅ
-
[flutter] _overlay == null"An OverlayEntry must first be removed from the Overlay before dispose is called."Flutter ์ค๋ฅ 2025. 1. 1. 20:19
์ด ์๋ฌ๋ Flutter์ Overlay์ ๊ด๋ จ๋ ๋ฌธ์ ๋ก, ํน์ ์์ ฏ์ด ์ ๊ฑฐ๋๊ธฐ ์ ์ OverlayEntry๊ฐ ์ ๋๋ก ์ ๊ฑฐ๋์ง ์์์ ๋ ๋ฐ์ํ๋ค.์๋ฌ ์๋ฌธ ๋ถ์Assertion failedFlutter๋ ์์ ฏ ์ํ๋ฅผ ๊ด๋ฆฌํ ๋ ํน์ ์กฐ๊ฑด์ ํ์ธํ๋ assertion์ ์ฌ์ฉํ๋ค.์ฌ๊ธฐ์ _overlay == null์ด๋ผ๋ ์กฐ๊ฑด์ด ์คํจํ๋ค๋ ๋ป์ด๋ค.An OverlayEntry must first be removed from the Overlay before dispose is called.OverlayEntry๋ Flutter์์ ํ์ , ํดํ, ๋๋กญ๋ค์ด ๋ฑ๊ณผ ๊ฐ์ UI ์์๋ฅผ ๊ด๋ฆฌํ๊ธฐ ์ํด ์ฌ์ฉ๋๋ค.์ด ์๋ฌ๋ OverlayEntry๋ฅผ Overlay์์ ์ ๊ฑฐ(remove())ํ์ง ์๊ณ , dispose()๋ฅผ ํธ..
-
'Flutter/Flutter.h' file not found when flutter run on iOSFlutter ์ค๋ฅ 2024. 9. 28. 15:49
ios/Runner ํด๋๋ฅผ ๋ค๋ฅธ ๊ณณ์ ๋ณด๊ดํด๋๋คios ํด๋๋ฅผ ์ญ์ ํ๋ค"flutter create ."์ ํฐ๋ฏธ๋์ ์ ๋ ฅํ๋ฉด iosํด๋๊ฐ ์๋์ผ๋ก ์๋ก ์๊ธด๋คRunner ํด๋๋ฅผ ๋ค์ ios ํด๋์ ๋ฃ์ด์ค๋ค ios/Runner.xcworkspaceํ์ผ์ xcode๋ก ์ด๊ณ ๋ฒ์ ๊ณผ ๋ฒ๋คID๋ฑ์ด ๋ง๋์ง ํ์ธํ๋ค.๋ง์ฝ Firebase๋ฅผ ์ฌ์ฉ์ค์ด๋ผ๋ฉด Google Service-Info.plistํ์ผ์ Firebase์์ ๋ค์ ๋ค์ด๋ก๋๋ฐ์ Runner ํด๋์ ๋ฃ์ด์ค๋ค (์ด๋ ํญ์ Xcode๋ฅผ ํตํด์ ๋ฃ์ด์ผํ๋ค, ๋ง์ฝ ์ง์ ์์ค์ฝ๋์ ๋ฃ์ด๋ฒ๋ฆฌ๋ฉด ๋์ํ์ง ์๋๋ค) ๋ง์ง๋ง์ผ๋ก flutter run์ ์คํํ๋ฉด ํด๊ฒฐ๋๋ค!๋ง์ฝ ๊ทธ๋๋ ์๋๋ฉด ์๋์ ๋ช ๋ น์ด๋ค์ ์คํํ๋คcd iospod installcd ..flutter run
-
Flutter flutter_html 2.2.1 flutter_math_fork-0.5.0/lib/src/widgets/selection/handle_overlay.dart:60:40: Error: Member not found: 'fadeDuration'. errorFlutter ์ค๋ฅ 2024. 2. 27. 12:02
[Error] Error (Xcode): ../.pub-cache/hosted/pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/handle_overlay.dart:60:40: Error: Member not found: 'fadeDuration'. [Solution] 1. remove flutter_html 2.2.1 2. add flutter_widget_from_html: ^0.14.11 webview_flutter: ^4.0.1
-
Flutter resizeToAvoidBottomInset, MediaQuery.of(context).viewInsets.bottom is not workingFlutter ์ค๋ฅ 2023. 11. 25. 22:52
ํค๋ณด๋๊ฐ ํ์ ๋ ๋ ์์ ฏ๋ค์ ๊ฐ๋ฆฌ์ง ์๊ฒ ํ๊ธฐ์ํด resizeToAvoidBottomInset, MediaQuery.of(context).viewInsets.bottom๋ค์ ์ฌ์ฉํ๋๋ฐ ์ด๋์๊ฐ ๊ฐ์๊ธฐ ์๋๊ธฐ ์์ํ๋ค [Solution] ์ด๋ flutter_screenutil์ ์ฌ์ฉํ ๋ ๋ฐ์ํ๋๋ฐ ์๋์ ๊ฐ์ด main.dart์์ useInheritedMediaQuery: true, ๋ฅผ ์ถ๊ฐํด์ฃผ๋ฉด ๋๋ค [์์] ScreenUtilInit( useInheritedMediaQuery: true, designSize: const Size(376, 812), builder: (context, child) { return const Scaffold( resizeToAvoidBottomInset: true, bod..
-
Flutter Error (Xcode): type argument 'nw_proxy_config_t' (aka 'struct nw_proxy_config *') is neither an Objective-C object nor a block type/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.s..Flutter ์ค๋ฅ 2023. 10. 5. 00:22
[Problem] Error (Xcode): type argument 'nw_proxy_config_t' (aka 'struct nw_proxy_config *') is neither an Objective-C object nor a block type /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h:119:46 Parse Issue (Xcode): Could not build module 'WebKit' /Users/..
-
Flutter Error (Xcode): DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR insteadFlutter ์ค๋ฅ 2023. 10. 4. 23:07
[Problem] Error (Xcode): DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead Could not build the application for the simulator. Error launching application on iPhone 14. [Solution] ios/Podfileํ๋จ์ ๋ด์ฉ์ ์๋์ ๊ฐ์ด ๋ณ๊ฒฝํฉ๋๋ค post_install do |installer| installer.generated_projects.each do |project| project.targets.each do |target| target.build_configurations.each do |..
-
flutter web firebasestorage cors error, The following ProgressEvent$ object was thrown resolving an image codec: [object ProgressEvent]Flutter ์ค๋ฅ 2023. 9. 25. 03:56
[๋ฌธ์ ์ํฉ] Flutter web์์ Firebase storage์ ์ฌ๋ ค๋ ์ด๋ฏธ์ง๋ฅผ ์ฌ์ฉํ ๊ฒฝ์ฐ ์ค๋ฅ๊ฐ ๋จ๋ ์ํฉ [ํด๊ฒฐ๋ฐฉ๋ฒ] 1. ํด๋น Firebase์ GCP(GoogleCloudPlatform)๋ก ์ด๋ํ๋ค 2.์ฐ์ธก ์๋จ์ ์๋ Cloud Shell ๋ฒํผ์ ๋๋ฅธ๋ค 3. ํฐ๋ฏธ๋์ด ํ์ฑํ๋๋ฉด echo '[{"origin": ["*"],"responseHeader": ["Content-Type"],"method": ["GET", "HEAD"],"maxAgeSeconds": 3600}]' > cors-config.json ๋ฅผ ์ ๋ ฅํ๋ค, ๋๋ ํน์ url์๋ง ํ์ฉํ๊ณ ์ถ๋ค๋ฉด echo '[{"origin": ["https://yourdomain.com"],"responseHeader": ["Content-Ty..
-
flutter firebase functions has been blocked by cors policy: no 'access-control-allow-origin' header is present on the requested resource.Flutter ์ค๋ฅ 2023. 8. 24. 01:24
1. GCP๋ก ์ด๋ ํ ์ข์ธก ๋ฉ๋ดํญ์ ๋๋ฌ "Cloud Functions"๋ฉ๋ด๋ก ์ด๋ํ๋ค 2. ์ํ๋ ํจ์๋ฅผ ๋๋ฅธ ํ ์๋จ์ ์๊ธฐ๋ ๋ฉ๋ด ์ค "๊ถํ"์ ๋๋ฅธ๋ค. 3.์ฐ์ธก์ ์๋ "์ฃผ ๊ตฌ์ฑ์ ์ถ๊ฐ" ๋ฒํผ์ ๋๋ฅธ ํ "์ฃผ ๊ตฌ์ฑ์ ์ถ๊ฐ"์๋ "allUsers"๋ฅผ ์ ๋ ฅํ๊ณ "์ญํ ์ง์ ์์๋ "Cloud Functions ํธ์ถ์ "๋ฅผ ์ ํํ๋ค. 4. ์ ์ฅ ํ ํ ์คํธํ๋ฉด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋๋ค