import 'package:flutter/material.dart'; class CenterImage extends StatelessWidget { const CenterImage({Key? key, required this.videoPath}) : super(key: key); final String videoPath; @override Widget build(BuildContext context) { // double bottom = MediaQuery.of(context).viewInsets.bottom; // RecommendProvider provider = Provider.of(context); return Center( child: Container( // padding: EdgeInsets.only(top: bottom), child: Image.asset(videoPath)), ); } }