feat: later page: multi select

feat: fav detail page: multi select

opt: reply item

opt: load more

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-28 20:53:52 +08:00
parent 665dd8b92a
commit 12818ae415
51 changed files with 988 additions and 759 deletions

View File

@@ -6,6 +6,8 @@ Widget iconButton({
required IconData icon,
required VoidCallback? onPressed,
double size = 36,
Color? bgColor,
Color? iconColor,
}) {
return SizedBox(
width: size,
@@ -16,11 +18,12 @@ Widget iconButton({
icon: Icon(
icon,
size: size / 2,
color: Theme.of(context).colorScheme.onSecondaryContainer,
color: iconColor ?? Theme.of(context).colorScheme.onSecondaryContainer,
),
style: IconButton.styleFrom(
padding: EdgeInsets.all(0),
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
backgroundColor:
bgColor ?? Theme.of(context).colorScheme.secondaryContainer,
),
),
);

View File

@@ -23,6 +23,7 @@ class VideoCardH extends StatelessWidget {
this.showView = true,
this.showDanmaku = true,
this.showPubdate = false,
this.onTap,
});
final dynamic videoItem;
final Function()? longPress;
@@ -32,6 +33,7 @@ class VideoCardH extends StatelessWidget {
final bool showView;
final bool showDanmaku;
final bool showPubdate;
final GestureTapCallback? onTap;
@override
Widget build(BuildContext context) {
@@ -57,6 +59,10 @@ class VideoCardH extends StatelessWidget {
borderRadius: BorderRadius.circular(12),
onLongPress: longPress,
onTap: () async {
if (onTap != null) {
onTap?.call();
return;
}
if (type == 'ketang') {
SmartDialog.showToast('课堂视频暂不支持播放');
return;