extends StatelessWidget { Widget build(BuildContext context) {Error: A non-null value must be returned since the return type 'Widget' doesn't allow null.- 'Widget' is from 'package:flutter/src&
让这个方法返回bottom Sheet,我想传递字符串和双精度变量作为参数,但当我这样做时,在调用语句中出现错误。下面是我的方法的代码:
childFunction(BuildContext, String)' can't be assigned to the parameter type 'Widget</