flutter - 底部溢出像素
问题描述
我知道这是一个非常常见的错误,当它发生在移动应用程序中时,我也知道通常的解决方案。但这发生在网络应用程序中。
我正在关注本教程,并且在移动设备上一切正常。
@override
Widget build(BuildContext context) {
var _nameWidget = kName.text.white.xl6
.lineHeight(1)
.size(context.isMobile ? 10 : 20)
.bold
.make()
.shimmer();
return SafeArea(
child: VxBox(
child: VStack(
[
ZStack(
[
PictureWidget(),
Row(
children: [
VStack([
context.isMobile ? 50.heightBox : 10.heightBox,
CustomAppBar().shimmer(primaryColor: kAccentColor),
30.heightBox,
_nameWidget,
20.heightBox,
VxBox()
.color(kAccentColor)
.size(60, 10)
.make()
.shimmer(primaryColor: kAccentColor),
30.heightBox,
SocialAccounts(
twitterUrl: kTwitterUrl,
githubUrl: kGithubUrl,
linkedInUrl: kLinkedInUrl,
),
]).pSymmetric(h: context.percentWidth * 10, v: 32),
Expanded(
child: VxResponsive(
fallback: const Offstage(),
medium: Introduction()
.pOnly(left: 120)
.h(context.percentHeight * 60),
large: Introduction()
.pOnly(left: 120)
.h(context.percentHeight * 60),
),
)
],
).w(context.screenWidth)
],
),
],
),
)
.size(context.screenWidth, context.percentHeight * 60)
.color(kSecondaryColor)
.make(),
);
}
}
解决方案
推荐阅读
- objective-c - Mac osx WebView 对话框
- spring - 如何从 Spring bean 中查找 JSF bean
- php - 将 SOAP 返回转换为 Array
- sql-server - 从一个表中选择,而不是在 SQL Server 中的另一个表中
- reporting-services - SSRS 将秒转换为 MM:SS 而不截断
- javascript - Firebase 云消息传递:未定义事件
- bash - 为什么会在屏幕内出现断管错误?
- javascript - 物理 Android 设备中的 React-Native 性能缓慢
- java - jaxb 将 xml 元素解组为具有某些字段的对象
- c++ - C++虚函数:调用基类函数而不是派生函数