cost 262 ms
Flutter的視頻有多貴?

[英]How expensive are videos in Flutter?

通常情況下,如果一個小部件必須多次重建或需要大量 GPU 資源,它是昂貴的。 那么,視頻呢? 例如,考慮以下兩種情況: 屏幕上有一個黑色星形(由 ClipPath 或類似的小部件組成)動畫屏幕。 與項目 1 完全相同,但不是用小部件制作星星,屏幕實際上是黑色星星動畫的全屏視頻。 哪個替代品可能更貴 ...

Bloc 中的 ToggleButton

[英]ToggleButton in Bloc

我正在嘗試使用Flutter提供的Bloc模式實現一個ToggleButton。代碼很簡單,但是有一個問題。 當我嘗試更新我的索引以便它可以從 Bloc 發出以將我的值從 bool 更改時,整個事情什么都不做。 我曾嘗試重寫代碼來查找問題,但我的猜測是更新不會通過 go。 有人知道如何解決這個問題 ...

Flutter 不會在真實的 iOS 設備上構建項目:PhaseScriptExecution

[英]Flutter does not build the project on real iOS device: PhaseScriptExecution

當我想在真實的 iOS 設備上運行我的 flutter 應用程序時,我得到了這個錯誤。 我知道,2 周前它運行良好,但在這 2 周內我開發了很多功能,最后是未來的權限處理程序,現在我無法在我的真實設備上運行該項目。 它在 iOS 模擬器上運行良好。 所以,讓我告訴你我嘗試了什么: 此外,在 Xco ...

textFormField/TextField 問題在聚焦時觸發不必要的重建

[英]Issue with textFormField/TextField triggering unnecessary rebuilds when focused

重點是,我的 textFormFields 或 textFields 會觸發不必要的重建,導致資源耗盡並使模擬器和計算機變慢甚至無法使用。 我對此做了相當多的研究。 這似乎是一個很大的問題,我一直無法解決。 我試過的: 使表單密鑰成為 static final => static final ...

flutter 應用程序 api 調用在發布模式下永遠不會返回

[英]flutter app api calls never returns in release mode

我的 flutter 應用程序在調試模式下工作,從 api 等獲取數據。 但是在我以發布模式構建應用程序並嘗試在我的實際手機上打開它之后。 從 api 獲取數據不起作用。 我嘗試過的事情: <uses-permission android:name="android.permission.I ...

Flutter CheckboxListTile 未響應 stream 生成器的更改

[英]Flutter CheckboxListTile not responding to changes with stream builder

我正在嘗試在 stream 構建器中使用CheckboxListTile ,現在我將它顯示在我的 listView 中,但是當我點擊它時,它的值沒有改變。 我最初有bool inPack = false; 在小部件構建之前,它會響應,但 listView 中的每個項目同時切換,這不是我想要的。 然后 ...

如何在MateriapApp Buildcontext之外更改flutter應用程序的textTheme

[英]How to change the textTheme of flutter app outside MateriapApp Buildcontext

我創建了一個 class 為我的 flutter 應用程序制作明暗主題,為此我刪除了以前的主題並用新的 class 替換它以前的 MaterialApp 新材料應用 最后這是 MyThemes class 和 ThemeProvider 所以我的問題從這里開始。 我收到錯誤未定義的名稱“上下文”。 ...

Flutter 我無法使用 build apk 命令構建 apk

[英]Flutter I can't build apk with build apk command

我構建了一個應用程序並嘗試構建 apk。 但是我用flutter build apk命令構建的 apk 不起作用。 有一個白色的屏幕來了。 今天,我將我的設備與 USB 連接,並以這種方式將其構建到我的設備中。 這次奏效了。 我必須做什么? 我究竟做錯了什么? 是否可能是 null 安全或其他原因 ...

Flutter:CocoaPods 找不到 pod“Firebase”的兼容版本

[英]Flutter: CocoaPods could not find compatible versions for pod "Firebase"

我一直在為使用Firebase Firestore的 Flutter 應用程序更新,完成更新並開始為 IOS 構建它后,我收到以下錯誤消息,導致構建操作失敗: 注意:問題中的錯誤消息說Firebase/Auth package 但它也發生在其他Firebase包中。 那么我應該怎么做才能克服這個問題 ...

Flutter APK 中缺少 UI

[英]UI missing in Flutter APK

兩天以來,我一直在嘗試解決這個奇怪的問題。 在調試模式下,我的應用程序運行良好,但在發布apk UI 時未呈現。 我已經檢查了所有可能的解決方案,但無法修復它。 由於第一個屏幕上也缺少一些 UI。 這是我的應用 這是我的第一個屏幕代碼 點擊英文Button代碼后 BigRoundedContai ...

flutter web 使用搖樹圖標構建

[英]flutter web build with tree shake icons

當我使用命令--tree-shake-icons將 flutter 構建到 web 平台時,我收到此錯誤。This application cannot tree shake icons fonts. It has non-constant instances of IconData at the ...

任務 ':app:compileReleaseJavaWithJavac' 的執行失敗。 編譯失敗; 有關詳細信息,請參閱編譯器錯誤輸出。 在 Flutter 構建中

[英]Execution failed for task ':app:compileReleaseJavaWithJavac'. Compilation failed; see the compiler error output for details. in Flutter build

我正在 Android Studio 中開發 Flutter 應用程序。 不太確定出了什么問題。 我能夠成功運行該應用程序,但是在構建時出現錯誤。 任何幫助都會很棒。 Dart SDK 版本為 2.10.0 這是我的 build.gradle 這是錯誤 C:\flutter\bin\flu ...

flutter 構建 ipa 在本地工作,但在同一台機器上的 github 操作上運行時不起作用

[英]flutter build ipa works locally, but not when run on github actions on the same machine

我使用 Flutter 3.0.0(也嘗試過 2.10.5)創建了一個空的 flutter 項目。 我可以構建它,在我的 iPhone 上運行它並從命令行歸檔應用程序。 通過 Github 操作運行相同的命令時,我無法歸檔我的應用程序。 同一台機器作為自托管運行器連接到 Github Actions ...

iOS 構建失敗,“運行 pod 安裝時出錯”。 pod install / pod install --repo-update 不能解決問題

[英]Failed iOS Build , "Error running pod install" . pod install / pod install --repo-update doesn't solve the issue

flutter build ios --release 后卡在pod install,導致Error running pod install 在此之后,我將 go 轉到 ios 子文件夾,希望 pod install 或 pod install --repo-update 可以幫助我解決問題,但是 ...

錯誤:找不到正確的提供者<appstatenotifier>在這個消費者之上<appstatenotifier>微件</appstatenotifier></appstatenotifier>

[英]Error: Could not find the correct Provider<AppStateNotifier> above this Consumer<AppStateNotifier> Widget

在我嘗試將提供程序功能添加到我的應用程序后出現以下錯誤: 錯誤:在此消費者小部件上方找不到正確的提供者這是我的 ChangeNotifier 代碼:import 'package:flutter/material.dart'; class AppStateNotifier extends Chan ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM