(),
),
],
);
}),
),
在Demo中,添加一个StreamBuilder()。...在StreamBuilder中,添加一个initialData;SlimyCard支持Streams(BLoC)提供其实时状态。为此,将SlimyCard 包在StreamBuilder中。...build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.brown[100],
appBar...: AppBar(
backgroundColor: Colors.indigo[300],
automaticallyImplyLeading: false,...title: Text("SlimyCard Animated Demo"),
),
body: StreamBuilder(
initialData: false