123456789101112131415161718 |
- 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<RecommendProvider>(context);
- return Center(
- child: Container(
- // padding: EdgeInsets.only(top: bottom),
- child: Image.asset(videoPath)),
- );
- }
- }
|