OpenMediacenterMobileFlutter/lib/preview/actor_feed.dart
lukas-heiligenbrunner 9ef317f0ba outsourced lots of api calls to api folder
centered error message when failed loading video feed
display server url on settings page
2022-10-15 20:28:31 +02:00

23 lines
529 B
Dart

import 'package:flutter/material.dart';
import '../api/video_api.dart';
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(
videoLoader: () => loadVideoByActor(widget.actor),
);
}
}