class _MyHomePageState extends State<MyHomePage> {
final scrollController = ScrollController();
@override
Widget build(BuildContext context) {
return Scaffold(
body: ScrollShadow(
controller: scrollController,
child: SingleChildScrollView(
controller: scrollController,
child: Column(
children: [
Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height * 0.7,
color: Colors.orange,
),
Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height * 0.7,
color: Colors.purple,
)
],
),
),
),
);
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Flutter scroll shadow
License
jackychen82/scroll_shadow
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Flutter scroll shadow
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published