我知道之前已经讨论过这个话题,但我并没有真正找到我要找的东西。
我有那些按钮(底部的屏幕截图)。现在我想添加一个恒定的外发光。除了在 drawable 文件夹中将其保存为 .png 之外,还有另一种可能吗?那会减少很多工作。谢谢!
\n错误:I / flutter(5919):\ xe2 \ x95 \ x90 \ xe2 \ x95 \ x90 \ xe2 \ x95 \ xa1小部件库捕获异常\ n \ xe2 \ x95 \ x9e \ xe2 \ x95 \ x90 \ xe2 \ x95 \x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90 \xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2 \x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95 \x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90 \xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2 \x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95 \x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90 I/颤动\n ( 5919): 构建 Builder 时抛出以下断言:\n I/flutter (5919): 使用不包含 Bloc 类型的 Bloc 的上下文调用 BlocProvider.of()。I/flutter ( 5919):从传递给 I/flutter ( 5919) 的上下文开始找不到祖先:\n BlocProvider.of>()。I/flutter ( 5919):
\n 如果您使用的上下文来自 BlocProvider 之上的小部件,则可能会发生这种情况。I/flutter(5919):使用的上下文是:\n BlocBuilder,动态>(脏,状态:I/flutter(\n 5919):_BlocBuilderBaseState,\n动态>#55a7d(生命周期状态:已创建))I/flutter ( 5919): 相关的导致错误的小部件是: I/flutter ( 5919): …
它是在 android 上运行的项目,但是当我尝试在 iOS 上构建时,我无法做到,如果也遇到此问题,请与我分享知识。对不起,我的英语蹩脚。
这是日志文件:
Flutter 崩溃报告;请在https://github.com/flutter/flutter/issues提交文件。
颤振构建 ios --release
ProcessException:ProcessException:进程异常退出:命令行调用:/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -list
2020-05-30 10:58:59.614 xcodebuild[22085:408139] 错误域=NSCocoaErrorDomain 代码=3840“JSON 文本没有以数组或对象开头,并且没有设置允许片段的选项。” UserInfo={NSDebugDescription=JSON 文本没有以数组或对象开头,并且没有设置允许片段的选项。} xcodebuild:错误:无法读取项目“Runner.xcodeproj”。原因:项目“Runner”已损坏,由于解析错误而无法打开。检查项目文件中是否存在无效编辑或未解决的源代码控制冲突。
路径:/Users/itinternational/AndroidStudioProjects/shipping_driver/ios/Runner.xcodeproj 命令:/usr/bin/xcodebuild -list
#0 RunResult.throwException (package:flutter_tools/src/base/process.dart:172:5)
#1 _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:322:19)
<asynchronous suspension>
#2 XcodeProjectInterpreter.getInfo (package:flutter_tools/src/ios/xcodeproj.dart:389:50)
#3 buildXcodeProject (package:flutter_tools/src/ios/mac.dart:108:78)
#4 BuildIOSCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:83:43)
#5 _rootRunUnary (dart:async/zone.dart:1192:38)
#6 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#7 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#8 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#9 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#10 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#11 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#12 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
#13 ApplicationPackageStore.getPackageForPlatform (package:flutter_tools/src/application_package.dart)
#14 _rootRunUnary (dart:async/zone.dart:1192:38)
#15 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#16 …Run Code Online (Sandbox Code Playgroud)