2022-08-28 20:51:12 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2022-10-15 18:28:31 +00:00
|
|
|
import '../api/video_api.dart';
|
2022-08-28 20:51:12 +00:00
|
|
|
import 'preview_grid.dart';
|
|
|
|
import '../types/actor.dart';
|
|
|
|
|
|
|
|
class ActorFeed extends StatefulWidget {
|
|
|
|
const ActorFeed({Key? key, required this.actor}) : super(key: key);
|
|
|
|
final Actor actor;
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<ActorFeed> createState() => _ActorFeedState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _ActorFeedState extends State<ActorFeed> {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return PreviewGrid(
|
2022-10-15 18:28:31 +00:00
|
|
|
videoLoader: () => loadVideoByActor(widget.actor),
|
2022-08-28 20:51:12 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|