Flutter-CuriosityApp icon indicating copy to clipboard operation
Flutter-CuriosityApp copied to clipboard

lib/main.dart:21:47: Error: The argument type 'dart.core::int' can't be assigned to the parameter type 'dart.core::double'.

Open zhuruyi2013 opened this issue 6 years ago • 1 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类型就可以了

zhuruyi2013 avatar Jan 08 '19 06:01 zhuruyi2013

好的,谢谢你,改了

xumaohuai avatar Jan 08 '19 06:01 xumaohuai