小编Mil*_*les的帖子

颤振中没有名称为“nullOk”的命名参数错误

在遇到可怕的问题后,我通过将我的项目传递给另一个项目来完成。但是现在它在尝试运行我的程序后给了我这个错误。这是我以前从未见过的。而且,我没有编辑这些代码,因为它们是库。

../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_neumorphic-3.0.3/lib/src/widget/app_bar.dart:147:57: Error: No named parameter with the name 'nullOk'.
    final ScaffoldState scaffold = Scaffold.of(context, nullOk: true);
                                                        ^^^^^^
../../Developer/flutter/packages/flutter/lib/src/material/scaffold.dart:1918:24: Context: Found this candidate, but the arguments don't match.
  static ScaffoldState of(BuildContext context) {
                       ^^
../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/neumorphic-0.4.0/lib/src/components/app_bar.dart:32:57: Error: No named parameter with the name 'nullOk'.
    final ScaffoldState scaffold = Scaffold.of(context, nullOk: true);
                                                        ^^^^^^
../../Developer/flutter/packages/flutter/lib/src/material/scaffold.dart:1918:24: Context: Found this candidate, but the arguments don't match.
  static ScaffoldState of(BuildContext context) {
                       ^^
../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/neumorphic-0.4.0/lib/src/components/text_field.dart:953:32: Error: No named parameter with the name 'nullOk'.
        MediaQuery.of(context, nullOk: true)?.navigationMode ?? …
Run Code Online (Sandbox Code Playgroud)

dart flutter

26
推荐指数
4
解决办法
2万
查看次数

Xcode codesign想要使用“Apple Development”钥匙串密码错误

我使用 flutter 构建了一个应用程序,现在我想通过 Xcode 将其部署到我的 iPhone 上。但是,当我使用调试配置进行部署时,当我将手机与 Mac 断开连接时,我不会在手机上访问我的应用程序。所以我搜索并发现我应该在发布配置中构建,但是当我这样做时,我会收到这样的弹出窗口在此输入图像描述

我输入了唯一的用户密码,但它被拒绝了。我搜索并发现按“始终允许”工作正常,但就我而言,没有此选项。我应该怎么办?谢谢。

xcode ios flutter apple-developer

12
推荐指数
1
解决办法
4535
查看次数

Flutter AMSupportURLConnectionDelegate 在两者中都实现了?错误

自从我将项目迁移到 Apple Silicon mac 后,我遇到了许多问题。我终于设法减少了问题,但不确定答案。

\n
Running "flutter pub get" in Flutter_the app copy 3...        760ms\nLaunching lib/main.dart on iPhone 11 in debug mode...\nRunning pod install...                                             986ms\nRunning Xcode build...                                                  \nXcode build done.                                            1.5s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n   objc[95181]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20ba238f0) and ??\n   (0x1160dc2b8). One of the two will be used. Which one is undefined.\n   objc[95181]: Class AMSupportURLSession is implemented in both ?? (0x20ba23940) and ?? (0x1160dc308). One\n   of the two will …
Run Code Online (Sandbox Code Playgroud)

xcode ios dart flutter

8
推荐指数
2
解决办法
7692
查看次数

在 Python 中将频率转换为音符

我正在尝试将频率值转换为注释,例如输入 400 Hz 打印“A4”,但我不想在代码中编写完整的频率表。有什么办法可以做到这一点吗?

python frequency

4
推荐指数
1
解决办法
5002
查看次数

在 m1 mac arduino 上找不到 Pyserial 或 esptool 目录

我正在使用 m1 MacBook pro 并尝试在 ESP8266 上运行 arduino 代码。每次它都会给我这个错误

Arduino: 1.8.13 (Mac OS X (BigSur)), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Executable segment sizes:
IROM   : 246940          - code in flash         (default or ICACHE_FLASH_ATTR) 
IRAM   : 27260   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...) 
DATA   : 1268  )         - initialized variables (global, static) in RAM/HEAP …
Run Code Online (Sandbox Code Playgroud)

arduino macos-big-sur apple-m1

1
推荐指数
1
解决办法
1737
查看次数

如何解决在 Iphone 11 上运行 pod install 时出现错误

我知道关于这个问题有很多类似的问题,我都尝试了,但没有成功。\n尝试在物理设备上的 Xcode 上运行代码后开始出现问题。\n错误如下我在命令中所说的那样线路“颤振运行”。

\n
Running pod install...                                           1,234ms\nCocoaPods' output:\n\xe2\x86\xb3\n      Preparing\n\n    Analyzing dependencies\n\n    Inspecting targets to integrate\n      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)\n\n    Finding Podfile changes\n      - Flutter\n      - flutter_secure_storage\n      - local_auth\n      - shared_preferences\n      - vibration\n\n    Fetching external sources\n    -> Fetching podspec for `Flutter` from `Flutter`\n    -> Fetching podspec for `flutter_secure_storage` from `.symlinks/plugins/flutter_secure_storage/ios`\n    -> Fetching podspec for `local_auth` from `.symlinks/plugins/local_auth/ios`\n    -> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`\n    -> Fetching podspec for `vibration` from `.symlinks/plugins/vibration/ios`\n\n    Resolving dependencies of …
Run Code Online (Sandbox Code Playgroud)

dart flutter

0
推荐指数
1
解决办法
2195
查看次数