fix: 订阅删除按钮位置错误

This commit is contained in:
orz12
2024-04-22 20:13:49 +08:00
parent d69a3af2e8
commit e8eee92b08

View File

@@ -78,7 +78,9 @@ class VideoContent extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Expanded( return Expanded(
child: Padding( child: Stack(
children: [
Padding(
padding: const EdgeInsets.fromLTRB(10, 2, 6, 0), padding: const EdgeInsets.fromLTRB(10, 2, 6, 0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@@ -110,10 +112,13 @@ class VideoContent extends StatelessWidget {
), ),
), ),
const Spacer(), const Spacer(),
Row( ],
mainAxisAlignment: MainAxisAlignment.end, ),
children: [ ),
SizedBox( Positioned(
bottom: 0,
right: 0,
child: SizedBox(
height: 35, height: 35,
width: 35, width: 35,
child: IconButton( child: IconButton(
@@ -124,12 +129,10 @@ class VideoContent extends StatelessWidget {
), ),
icon: const Icon(Icons.delete_outline, size: 18), icon: const Icon(Icons.delete_outline, size: 18),
), ),
)
],
)
],
), ),
), ),
],
),
); );
} }
} }