opt: unsubscribe button

This commit is contained in:
guozhigq
2024-10-26 01:01:47 +08:00
parent 0d55116f24
commit b6e6cc1735

View File

@ -90,12 +90,15 @@ class VideoContent extends StatelessWidget {
return Expanded( return Expanded(
child: Padding( child: Padding(
padding: const EdgeInsets.fromLTRB(10, 2, 6, 0), padding: const EdgeInsets.fromLTRB(10, 2, 6, 0),
child: Column( child: Stack(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
subFolderItem.title!, subFolderItem.title!,
textAlign: TextAlign.start, textAlign: TextAlign.start,
maxLines: 3,
style: const TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
letterSpacing: 0.3, letterSpacing: 0.3,
@ -119,12 +122,13 @@ class VideoContent extends StatelessWidget {
color: Theme.of(context).colorScheme.outline, color: Theme.of(context).colorScheme.outline,
), ),
), ),
const Spacer(), ],
),
isOwner isOwner
? Row( ? Positioned(
mainAxisAlignment: MainAxisAlignment.end, right: 0,
children: [ bottom: -4,
IconButton( child: IconButton(
style: ButtonStyle( style: ButtonStyle(
padding: MaterialStateProperty.all(EdgeInsets.zero), padding: MaterialStateProperty.all(EdgeInsets.zero),
), ),
@ -134,8 +138,7 @@ class VideoContent extends StatelessWidget {
color: Theme.of(context).colorScheme.outline, color: Theme.of(context).colorScheme.outline,
size: 18, size: 18,
), ),
) ),
],
) )
: const SizedBox() : const SizedBox()
], ],