Closed maplepam closed 1 year ago
Update, I've figured it out. The widget causing the error is the ActionButtons class.
I added expanded to each element in row and error no more. :D
return Expanded( child: Row( mainAxisAlignment: MainAxisAlignment.end, children:[ Expanded( child: TextButton( style: (timeState.widget.cancelButtonStyle ?? timeState.widget.buttonStyle) ?? defaultButtonStyle, onPressed: timeState.onCancel, child: Text( timeState.widget.cancelText, style: timeState.widget.cancelStyle, ), ), ), SizedBox(width: timeState.widget.buttonsSpacing ?? 0), Expanded( child: TextButton( onPressed: timeState.onOk, style: timeState.widget.buttonStyle ?? defaultButtonStyle, child: Text( timeState.widget.okText, style: timeState.widget.okStyle, ), ), ), ], ), );
Hello, I have the following widget tree.
From the InkWell on tap function, I added the following codes:
However, I'm getting the following error during build of DayNightTimePickerIos:
I've been trying to figure out how to make this work, but I can't seem even seem to find the root cause. Perhaps you could help me with this problem?
Thanks!