drop_cap_text
drop_cap_text copied to clipboard
Issue with simple dialog
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(),
)
),
);
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,
)
),
),
);
This is no longer working when i move the container one level deep. What can i do, nothing is working.
example code please 💪