follow_Item.dart 993 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import 'package:eye_video/bizmodule/bizwidget/cover_image_item.dart';
  2. import 'package:eye_video/bizmodule/bizwidget/follow_list_head.dart';
  3. import 'package:flutter/material.dart';
  4. class FollowItemVideo extends StatelessWidget {
  5. final String coverUrl;
  6. final int duration;
  7. final String avatarUrl;
  8. final String title;
  9. final String tag;
  10. const FollowItemVideo(
  11. {Key key,
  12. this.coverUrl,
  13. this.duration,
  14. this.avatarUrl,
  15. this.title,
  16. this.tag})
  17. : assert(coverUrl != null),
  18. assert(avatarUrl != null),
  19. super(key: key);
  20. @override
  21. Widget build(BuildContext context) {
  22. return Container(
  23. margin: EdgeInsets.all(10),
  24. child: Column(
  25. children: [
  26. CoverImageItem(
  27. coverUrl: coverUrl,
  28. duration: duration,
  29. ),
  30. FollowListHead(
  31. title: title,
  32. avatarUrl: avatarUrl,
  33. description: tag,
  34. ),
  35. ],
  36. ),
  37. );
  38. }
  39. }