Pass width constrain to title text in memory to that it breaks to next line
This commit is contained in:
parent
7383dbe0c1
commit
463523e09e
1 changed files with 7 additions and 2 deletions
|
@ -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",
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
Loading…
Add table
Reference in a new issue