import 'package:flutter/material.dart';
class CustomScrollViewPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Custom Scroll View'),
),
body: CustomScrollView(
slivers: <Widget>[
SliverAppBar(
title: Text('Sliver App Bar'),
floating: true,
),
SliverList(
delegate: SliverChildBuilderDelegate(
(context, index) => ListTile(
title: Text('List Item $index'),
),
childCount: 10,
),
),
],
),
);
}
}
void main() {
runApp(MaterialApp(
home: CustomScrollViewPage(),
));
}