drop_cap_text icon indicating copy to clipboard operation
drop_cap_text copied to clipboard

Issue with simple dialog

Open nicolasvahidzein opened this issue 4 years ago • 3 comments

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 avatar May 07 '20 06:05 nicolasvahidzein

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 avatar May 07 '20 15:05 nicolasvahidzein

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

nicolasvahidzein avatar May 25 '20 08:05 nicolasvahidzein

example code please 💪

mtiziano avatar Mar 29 '21 15:03 mtiziano