bruno
bruno copied to clipboard
Context: Found this candidate, but the arguments don't match.
问题提交
标题格式:Context: Found this candidate, but the arguments don't match.
内容需包含:
1、BUG 描述
/C:/Users/TUF/AppData/Local/Pub/Cache/hosted/pub.dev/bruno-3.3.0/lib/src/components/navbar/brn_appbar.dart:297:7: Error: No named parameter with the name 'brightness'. brightness: brightness ?? Brightness.light, ^^^^^^^^^^ /E:/flutter/packages/flutter/lib/src/material/app_bar.dart:177:3: Context: Found this candidate, but the arguments don't match. AppBar({ ^^^^^^ Target kernel_snapshot failed: Exception
2、复现步骤
以下为我的依赖文件
3、期望行为 能正常使用
4、运行环境
- 运行设备
- 系统
- Bruno 版本
- Flutter Doctor 信息
5、附加信息
包括视频、图片等补充信息
我也遇到了,网上没有相关的信息(希望大佬们指点一二)~
![]()
已经弃了,用getwidget了
有人解决了么?
能给出最小demo吗?
Flutter 3.10.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 84a1e904f4 (2 days ago) • 2023-05-09 07:41:44 -0700
Engine • revision d44b5a94c9
Tools • Dart 3.0.0 • DevTools 2.23.1
AppBar上已没有brightness
和textTheme
属性
这个问题有临时解决方案么?
这个bug是因为 Flutter 2.0 移除了这个属性,改用 Theme 了,所以可以把这个删了就行了。
可以用我修改后的库:https://github.com/BingKui/bruno.git
修改pubspec.yaml
文件:
bruno:
git:
url: https://github.com/BingKui/bruno.git
即可解决报错问题。
Bruno 目前还没有升级适配 3.10.0 版本,近期会升级适配,解决该问题。 预计 7 月中旬发布新版本。