import 'package:flutter/material.dart'; import '../platform.dart'; import '../types/actor.dart'; class ActorTile extends StatefulWidget { const ActorTile({Key? key, required this.actor}) : super(key: key); final Actor actor; @override State createState() => _ActorTileState(); } class _ActorTileState extends State { @override Widget build(BuildContext context) { return ClipRRect( borderRadius: BorderRadius.circular(20.0), child: Stack( children: [ Container( child: Column( children: [ Text( widget.actor.name, style: TextStyle(fontSize: isTV() ? 8 : 10.5), overflow: TextOverflow.clip, maxLines: 1, ), SizedBox( height: 100, width: 100, ) ], ), color: Color(0x6a94a6ff), ), Positioned.fill( child: Material( color: Colors.transparent, child: GestureDetector( behavior: HitTestBehavior.translucent, onLongPress: () {}, onLongPressEnd: (details) {}, child: InkWell( onTap: () { // Navigator.push( // context, // MaterialPageRoute( // builder: (context) => // VideoScreen(metaData: widget.dta), // ), // ); }, ), ), ), ), ], ), ); } }