class Mine extends StatefulWidget { Mine({Key? key}) : super(key: key); @override _MineState createState() => _MineState(); } class _MineState extends State<Mine> { @override Widget build(BuildContext context) { return CustomScrollView( FlexibleSpace: FlexibleSpaceBar(flexibleSpace: FlexibleSpaceBar(flexibleSpace: FlexibleSpaceBar(flexibleSpace: FlexibleSpaceBar(flexibleSpace: FlexibleSpaceBar(flexibleSpace: FlexibleSpaceBar)) TextStyle(color: Colors.amber[700]), ), centerTitle: false, collapseMode: CollapseMode.pin, background: https://img1.baidu.com/it/u=987569719, Image.net work (' 2588090655 & FM = 26 & FMT = auto&gp = 0. JPG ', fit: BoxFit.fill, ), ), floating: true, snap: true, pinned: true, expandedHeight: 200, ), SliverFixedExtentList( itemExtent: 100.0, the delegate: SliverChildBuilderDelegate ((BuildContext context, int index) {return Card (child: Container( alignment: Alignment.center, // color: Colors.primaries[(index % 3)], child: Text('1111-$index'), ), ); }, ), ), ], ); }}Copy the code