我正在学习Flutter课程,这是我的相关代码:
我不断地收到这个错误信息:
Container(
color: kBottomContainerColour,
margin: EdgeInsets.only(top: 10.0),
width: double.infinity,
height: kBottomContainerHeight,
),
我不断地收到这个错误信息:
。
These invalid constraints were provided to _RenderColoredBox's layout() function by the following function, which probably computed the invalid constraints in question:
RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:268:14)
The offending constraints were: BoxConstraints(w=Infinity, h=80.0)
The relevant error-causing widget was:
Container file:///F:/Works/Projects/flutter/Flutter-Course-Resources/bmi-calculator-flutter1/lib/input_page.dart:241:24
虽然在课程中它运作良好,请帮忙。
Row
сђЂColumn
У┐ўТў»Stack
т░ЈжЃеС╗ХСИГ№╝Ъ - mrgnhnt96