Here's my code
当我尝试运行代码时出现错误
error: The argument type 'HomePage Function(dynamic)' can't be assigned to the parameter type 'Widget'. (argument_type_not_assignable at [ttt] lib\main.dart:37)
这是完整的代码
return
MaterialApp(
home: SplashScreen.navigate(
name: 'tic.flr',
next: (context) => HomePage(),
until: () => Future.delayed(Duration(seconds: 5)),
startAnimation: '1',
),
);
最佳答案
您是否尝试仅通过窗口小部件?因此:
next: HomePage(),
关于flutter - 我无法向您的应用添加耀斑闪屏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62407181/