|
|
@@ -61,7 +61,7 @@ class TrackPage extends BasePage<TrackController> {
|
|
|
// Enable snapping. This is true by default.
|
|
|
snap: true,
|
|
|
// Set custom snapping points.
|
|
|
- snappings: [168 / Get.height, 1.0],
|
|
|
+ snappings: [SnapSpec.headerFooterSnap, 1.0],
|
|
|
// Define to what the snappings relate to. In this case,
|
|
|
// the total available space that the sheet can expand to.
|
|
|
positioning: SnapPositioning.relativeToAvailableSpace,
|
|
|
@@ -69,8 +69,9 @@ class TrackPage extends BasePage<TrackController> {
|
|
|
footerBuilder: (context, state) {
|
|
|
return buildOperationBtn();
|
|
|
},
|
|
|
- builder: (context, state) {
|
|
|
- return Column(
|
|
|
+ headerBuilder: (context, state) {
|
|
|
+ return IntrinsicHeight(
|
|
|
+ child: Column(
|
|
|
children: [
|
|
|
SizedBox(height: 5.w),
|
|
|
Align(
|
|
|
@@ -86,6 +87,12 @@ class TrackPage extends BasePage<TrackController> {
|
|
|
),
|
|
|
SizedBox(height: 25.w),
|
|
|
buildTrackHeaderView(),
|
|
|
+ ],
|
|
|
+ ));
|
|
|
+ },
|
|
|
+ builder: (context, state) {
|
|
|
+ return Column(
|
|
|
+ children: [
|
|
|
SizedBox(
|
|
|
width: double.infinity,
|
|
|
height: 220.w,
|