|
|
|
@ -10,7 +10,7 @@ class IntroOverlayBuilder { |
|
|
|
required Size size, |
|
|
|
}) { |
|
|
|
return OverlayPosition( |
|
|
|
top: ScreenUtil().statusBarHeight, |
|
|
|
top: 0, |
|
|
|
width: screenSize.width, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
); |
|
|
|
@ -26,6 +26,7 @@ class IntroOverlayBuilder { |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
padding: EdgeInsetsGeometry.all(12.w), |
|
|
|
margin: EdgeInsets.only(top: ScreenUtil().statusBarHeight), |
|
|
|
alignment: Alignment.centerRight, |
|
|
|
child: _button( |
|
|
|
'跳过', |
|
|
|
@ -78,7 +79,7 @@ class IntroOverlayBuilder { |
|
|
|
double dy = params.offset?.dy ?? 0; |
|
|
|
double width = params.size.width; |
|
|
|
double height = params.size.height; |
|
|
|
double totalHeight = dy + height + 3 - ScreenUtil().statusBarHeight; |
|
|
|
double totalHeight = dy + height + 3; |
|
|
|
double left = params.offset?.dx ?? 0; |
|
|
|
double right = 1.sw - left - width; |
|
|
|
return SizedBox( |
|
|
|
@ -88,6 +89,7 @@ class IntroOverlayBuilder { |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
padding: EdgeInsetsGeometry.all(12.w), |
|
|
|
margin: EdgeInsets.only(top: ScreenUtil().statusBarHeight), |
|
|
|
alignment: Alignment.centerRight, |
|
|
|
child: _button( |
|
|
|
'跳过', |
|
|
|
|