OpenMediacenterMobileFlutter/lib/preview_tile.dart

27 lines
525 B
Dart
Raw Normal View History

2021-12-10 10:40:20 +00:00
import 'dart:convert';
import 'package:flutter/material.dart';
class VideoPreview {
String thumbnail;
String title;
int id;
VideoPreview(this.thumbnail, this.title, this.id);
}
class PreviewTile extends StatelessWidget {
const PreviewTile({Key? key, required this.dta}) : super(key: key);
final VideoPreview dta;
@override
Widget build(BuildContext context) {
return InkWell(
child: Column(
children: [Text(dta.title), Image.memory(base64Decode(dta.thumbnail))],
),
);
}
}