问题描述
@override
Widget build(BuildContext context) {
return Stack(
fit: StackFit.expand,children: <Widget>[
Image(
image: Assetimage("images/flower1.jpg"),fit: BoxFit.cover,color: Colors.black87,colorBlendMode: BlendMode.darken,),Column(
mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[
new Flutterlogo(
size: _iconAnimationController.value*100,Form(
child: Theme(data: ThemeData(
brightness: Brightness.dark,inputdecorationTheme: InputdecorationTheme(
labelStyle: TextStyle(
fontSize: 2,)
)
),child: Column(
children: <Widget>[
TextFormField(
decoration: Inputdecoration(
hintText: "Enter the email"
),)
],)),)
],)
],);
}
}
我想为Flutter应用程序创建一个登录页面,因此使用Stack将一个窗口小部件与其他窗口重叠,但是当我想在Stack的Column下添加两个TextField时,这向我显示了像素错误消息,我在各处使用Expanded但它根本没有结果。
错误消息是:
未找到材料小部件。
══════════════════════════
Reloaded 2 of 496 libraries in 1,860ms.
════════ Exception caught by rendering library
═════════════════════════════════════════════════════
The following assertion was thrown during layout:
A RenderFlex overflowed by 99460 pixels on the bottom.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)