Flutter 如何使用可膨胀带颤振?
我想在我的应用程序中有一个扩展行为。但在扩展时,它会抛出一个renderroverflow错误 这是我的密码Flutter 如何使用可膨胀带颤振?,flutter,dart,flutter-layout,Flutter,Dart,Flutter Layout,我想在我的应用程序中有一个扩展行为。但在扩展时,它会抛出一个renderroverflow错误 这是我的密码 ExpandableNotifier( child: Container( height: 400.0, width: double.infinity, alignment: Alignment.bottomCenter, padding: EdgeInsets.all(15.0), margin
ExpandableNotifier(
child: Container(
height: 400.0,
width: double.infinity,
alignment: Alignment.bottomCenter,
padding: EdgeInsets.all(15.0),
margin: EdgeInsets.all(8.0),
decoration: BoxDecoration(
color: Color(0xFFFFA5A4),
image: DecorationImage(
fit: BoxFit.cover,
image: AssetImage('assets/images/illus.png'),
),
borderRadius: BorderRadius.circular(15.0),
),
child: Align(
alignment: Alignment.bottomCenter,
child: ScrollOnExpand(
child: Container(
height: 300.0,
width: double.infinity,
padding: EdgeInsets.all(10.0),
margin:
EdgeInsets.only(top: 8.0, bottom: 0, left: 8.0, right: 8.0),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15.0),
color: Color(0xFFFFFFFF)),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Text',
style: TextStyle(
fontSize: 15,
color: Color(0xFFFFA5A4),
),
),
Row(
children: [
MoreWidgets();
//removed bracktes to make ques cleaner
ExpandablePanel(
header: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 0, vertical: 0.0)
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"Title",
overflow: TextOverflow.ellipsis,
//removed bracktes to make ques cleaner
collapsed: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
"Some more text",
overflow: TextOverflow.ellipsis,
maxLines: 3,
//removed bracktes to make ques cleaner
expanded: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
"very big text",
overflow: TextOverflow.ellipsis,
maxLines: 90,
)
//removed bracktes to make ques cleaner
SomeMoreWidgets();
//removed bracktes to make ques cleaner
我尝试在SingleChildScrollView中包装我的文本,但没有任何帮助
我什么都试过了,但都没用。我试过阅读文档,但没用。我找不到任何有用的东西
请帮帮我,我被困在这两天了