lib/main.dart:21:47: Error: The argument type 'dart.core::int' can't be assigned to the parameter type 'dart.core::double'.
zhuruyi2013 opened this issue · comments
lib/main.dart:21:47: Error: The argument type 'dart.core::int' can't be assigned to the parameter type 'dart.core::double'.
lib/main.dart:25:57: Error: The argument type 'dart.core::int' can't be assigned to the parameter type 'dart.core::double'
看了下text_style.dart 里面的声明, final double fontSize 是double类型的。
在main.dart里面有两处类型错误。传值改成double类型就可以了
好的,谢谢你,改了