错误日志如下:
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
RenderFlex children have non-zero flex but incoming width constraints are unbounded.
The relevant error-causing widget was:
Row file:///Users/admin/Documents/project/GitlabFlutter/Flitm/lib/view/screen/record/record_top.dart:971:26
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
RenderBox was not laid out: RenderFlex#c49f7 relayoutBoundary=up11 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1785 pos 12: 'hasSize'
The relevant error-causing widget was:
Container file:///Users/admin/Documents/project/GitlabFlutter/Flitm/lib/view/screen/record/record_top.dart:969:17
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
RenderBox was not laid out: RenderPadding#babc5 relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1785 pos 12: 'hasSize'
出问题的代码:
///have feel data Widget
return Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Expanded(
child: Column(
children: [
Container(
margin: EdgeInsets.fromLTRB(16, 16, 0, 0),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Container(
width: 24,
height: 24,
child: Image.as