Skip to content
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

Issue with simple dialog #11

Open
nicolasvahidzein opened this issue May 7, 2020 · 3 comments
Open

Issue with simple dialog #11

nicolasvahidzein opened this issue May 7, 2020 · 3 comments

Comments

@nicolasvahidzein
Copy link

Hello, i really like your package but i am getting an error. It is inside a simple dialog, it used to be working and then something changed and it no longer is.

LayoutBuilder does not support returning intrinsic dimensions.

                         return DropCapText(
				widget.notification.subtitle,
				dropCapPadding: EdgeInsets.fromLTRB(0, 10, 10, 10),
				textAlign: TextAlign.justify,
				style: TextStyle(
					// fontSize: 22,
					// fontWeight: FontWeight.w700
					// color: Colors.green,
				),
				dropCap: DropCap(
					width: 75,
					height: 75,
					child: CachedNetworkImage(
						imageUrl: _imageUrl(),
					)
				),
			);
@nicolasvahidzein
Copy link
Author

False alert, i fixed it by placing the dropcap inside a container like so:

                          return Container(
				width: double.maxFinite,
				// height: 100,
				child: DropCapText(
					widget.notification.subtitle,
					dropCapPadding: EdgeInsets.fromLTRB(0, 0, 10, 0),
					textAlign: TextAlign.justify,
					style: TextStyle(
						// fontSize: 22,
						// fontWeight: FontWeight.w700
						// color: Colors.green,
					),
					dropCap: DropCap(
						width: 75,
						height: 75,
						child: CachedNetworkImage(
							imageUrl: _imageUrl(),
							fit: BoxFit.contain,
						)
					),
				),
			);

@nicolasvahidzein
Copy link
Author

This is no longer working when i move the container one level deep. What can i do, nothing is working.

@mtiziano
Copy link
Owner

example code please 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants