Pass width constrain to title text in memory to that it breaks to next line

This commit is contained in:
ashilkn 2024-01-11 07:01:01 +05:30
parent 7383dbe0c1
commit 463523e09e

View file

@ -110,9 +110,14 @@ class _MemoriesWidgetState extends State<MemoriesWidget> {
"assets/onboarding_safe.png",
fit: BoxFit.cover,
),
const Positioned(
Positioned(
bottom: 8,
child: Text("1 year ago"),
child: SizedBox(
width: _itemExtent - 16,
child: const Text(
"1 year ago",
),
),
),
],
),