Luke Cheng

chenglu ·

坚定不移地推广谷歌技术一百年不动摇。
cfug/flutter-cn-codelabs

教程4,④增加Backdrop选项,”移除主页的应用栏“标题下的代码大小写有误

1 教程4,④增加Backdrop选项,”移除主页的应用栏“标题下的代码大小写有误

// TODO: Return an AsymmetricView (104)
return  AsymmetricView(products: ProductsRepository.loadProducts(category.all));

对照,最后...

cfug/flutter-cn-codelabs

教程3“④更换颜色”定制色板标题下的一段最后一句的“2014 年的 Material Design 颜色”

翻译有误 (Translation Errors) 其他反馈 (Others)

(这些颜色并非是 2014 年的 Material Design 颜色)

查了下英文对应的是“(These colors aren't from the 2014 Material color palettes.)

应该指的是“2014 Material Design color palettes”吧?是不是可以稍微直译成“2014 Ma...

cfug/flutter-cn-codelabs

《为 Java 开发人员准备的 Dart 教程》中文本错误

为 Java 开发人员准备的 Dart 教程 -> 4. 创建工厂模式 -> 选项 1:创建一个顶层的方法 [运行示例代码]
部分第四个项目中,“如果字符串是使用双引号进行生命的”,应为“声明”。

cfug/flutter-cn-codelabs

教程第六步的product_list_tab.dart参数问题

ProductRowTab 的 build() 方法里的builder接收的参数应为(context, model, child)

cfug/flutter-cn-codelabs

教程4的第4步可能有误导新手的地方?

mdc-flutter

Hi~
在教程4的第四步中的开头“移除主页的应用栏”中,源码为

return AsymmetricView(products: ProductsRepository.loadProducts(category));

最后的(catrgory)建议直接改为(Category.all),即

return AsymmetricView(products: ProductsRepository.loadProducts(Category.all));

编写flutter程序可以说是我第一次进行软件开发了。不知...

cfug/flutter-cn-codelabs

网页表单错误

你拥有怎样的移动应用开发经验?
第一个和第二个id相同,导致只能默认选中第一个,第二个选项选择不了。
WechatIMG2.png

cfug/flutter-cn-codelabs

教程错误

mdc-flutter

Hi neromaycry!
我重新复现了你的反馈,确实和描述一致。抱歉,之前我直接根据代码进行推断,判断有误。
我们下午和一些开发者讨论了这个问题,最终确定这是 Flutter 的一个BUG。在 ThemeData.copyWith 的时候在构造器中声明的属性会丢失 ButtonColor 中的同名属性。具体可参见下面的 issue:

cfug/flutter-cn-codelabs

教程错误

mdc-flutter

@Vadaski
Hi,
因为这两处都是我按照教程所述亲自尝试发现的,实际运行效果与教程中展示的图片效果是不一致的。

因此我特地查看了一下此教程项目的源码,发现确实这两处与教程中所述是不一致的,如下:

第一处:

教程源码中多了这么几行代码:

buttonTheme: base.buttonTheme.copyWith(
    buttonColor: kShrinePink100,
    textTheme: ButtonTextTheme.normal,
),

这应该是...

cfug/flutter-cn-codelabs

教程错误

mdc-flutter

教程题目:MDC Flutter 教程 3:Material 组件主题、形状、阴影和类型

错误1:
链接:https://codelabs.flutter-io.cn/codelabs/mdc-103-flutter-cn/index.html#3
错误描述:

final ThemeData _kShrineTheme = _buildShrineTheme();

ThemeData _buildShrineTheme() {
  final ThemeData b...
cfug/flutter-cn-codelabs

教程有错

first-flutter-app

编写你的第一个 Flutter App [1/2]

将 build() 方法添加到 RandomWordState 中,如下所示:

@overrideWidget build(BuildContext context) {return new MaterialApp(title: 'Startup Name Generator',home: new Rand...

cfug/flutter-cn-codelabs

为 Java 开发人员准备的 Dart 教程,第六章节:Dart 中的函数式编程

翻译有误 (Translation Errors)

“创建一个可以被党作为常量的匿名函数(也被称为 lambda 表达式,在 Java 的 JDK 8 release 中支持了 lambda 表达式)”
"党"应改为当。感谢翻译者。