bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Context: Found this candidate, but the arguments don't match.

Open lexoops opened this issue 1 year ago • 7 comments

问题提交

标题格式: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、复现步骤

以下为我的依赖文件 image

3、期望行为 能正常使用

4、运行环境

  • 运行设备
  • 系统
  • Bruno 版本
  • Flutter Doctor 信息

5、附加信息

包括视频、图片等补充信息 image

lexoops avatar Mar 20 '23 08:03 lexoops

我也遇到了,网上没有相关的信息(希望大佬们指点一二)~

image

已经弃了,用getwidget了

lexoops avatar Apr 04 '23 01:04 lexoops

有人解决了么?

Story5 avatar May 11 '23 07:05 Story5

能给出最小demo吗?

leftcoding avatar May 11 '23 08:05 leftcoding

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上已没有brightnesstextTheme属性

Deprecated API removed after v3.7

Story5 avatar May 11 '23 08:05 Story5

这个问题有临时解决方案么?

L-X-J avatar May 24 '23 15:05 L-X-J

这个bug是因为 Flutter 2.0 移除了这个属性,改用 Theme 了,所以可以把这个删了就行了。 可以用我修改后的库:https://github.com/BingKui/bruno.git 修改pubspec.yaml 文件:

bruno:
    git:
      url: https://github.com/BingKui/bruno.git

即可解决报错问题。

BingKui avatar May 31 '23 07:05 BingKui

Bruno 目前还没有升级适配 3.10.0 版本,近期会升级适配,解决该问题。 预计 7 月中旬发布新版本。

violinday avatar Jul 09 '23 14:07 violinday