-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the error seems to be size, help me please, I not understand #28
Comments
class FormContrato extends StatefulWidget { FormContrato({this.user, Key key}) : super(key: key); @OverRide class _WatermarkPaint extends CustomPainter { _WatermarkPaint(this.price, this.watermark); @OverRide @OverRide @OverRide @OverRide class _FormContratoState extends State Associacao associacao = Associacao(); ByteData _img = ByteData(0); final formatDate = DateFormat("dd/MM/yyyy"); var _dropdownAssociacao = null; @OverRide void initState() { Widget build(BuildContext context) { |
This will help https://www.youtube.com/watch?v=W5U9tTAeN-M |
Consider setting mainAxisSize to MainAxisSize.min and using FlexFit.loose fits for the flexible
children (using Flexible rather than Expanded). This will allow the flexible children to size
themselves to less than the infinite remaining space they would otherwise be forced to take, and
then will cause the RenderFlex to shrink-wrap the children rather than expanding to fit the maximum
constraints provided by the parent.
If this message did not help you determine the problem, consider using debugDumpRenderTree():
https://flutter.dev/debugging/#rendering-layer
http://api.flutter.dev/flutter/rendering/debugDumpRenderTree.html
The affected RenderFlex is:
RenderFlex#dbf9e relayoutBoundary=up2 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE(creator: Column ← Padding ← _SingleChildViewport ← IgnorePointer-[GlobalKey#a630f] ← Semantics ← _PointerListener ← Listener ← _GestureSemantics ← RawGestureDetector-[LabeledGlobalKey#6734b] ← _PointerListener ← Listener ← _ScrollableScope ← ⋯, parentData: offset=Offset(0.0, 0.0) (can use size), constraints: BoxConstraints(w=401.4, 0.0<=h<=Infinity), size: MISSING, direction: vertical, mainAxisAlignment: start, mainAxisSize: max, crossAxisAlignment: center, verticalDirection: down)
The creator information is set to:
Column ← Padding ← _SingleChildViewport ← IgnorePointer-[GlobalKey#a630f] ← Semantics ←
_PointerListener ← Listener ← _GestureSemantics ←
RawGestureDetector-[LabeledGlobalKey#6734b] ← _PointerListener ← Listener
← _ScrollableScope ← ⋯
The nearest ancestor providing an unbounded width constraint is: _RenderSingleChildViewport#9ba66 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
needs compositing
creator: _SingleChildViewport ← IgnorePointer-[GlobalKey#a630f] ← Semantics ← _PointerListener ←
Listener ← _GestureSemantics ←
RawGestureDetector-[LabeledGlobalKey#6734b] ← _PointerListener ← Listener
← _ScrollableScope ← _ScrollSemantics-[GlobalKey#6e550] ← RepaintBoundary ← ⋯
parentData: (can use size)
constraints: BoxConstraints(w=411.4, h=555.4)
size: MISSING
See also: https://flutter.dev/layout/
If none of the above helps enough to fix this problem, please don't hesitate to file a bug:
https://github.com/flutter/flutter/issues/new?template=BUG.md
The relevant error-causing widget was:
Column
lib\…\view\formContrato.dart:117
When the exception was thrown, this was the stack:
The text was updated successfully, but these errors were encountered: