I want to sticky the header of the table when the user scrolls the page down until this header disappears and stop sticky it after the user scrolls the page down until this table is gone.
I am using the Table
widget. Can we do this without using the scrollController
and packages of the table(I must use the Table
widget)?
Example code:
Widget page() {
return Scaffold(
body: SafeArea(
child: SingleChildScrollView(
child: Column(
children: [
otherWidget1(),
tableWidget1(),
otherWidget2(),
tableWidget2(),
],
),
),
),
);
}
Widget tableWidget(){
return Table(
children: [
headerWidget, //I want to sticky it!
bodyWidget,
],
);
}