组件封装

This commit is contained in:
toly
2023-04-29 11:29:24 +08:00
parent be04006e2a
commit 6830d62ab9
2 changed files with 23 additions and 9 deletions

17
lib/muyu/muyu_image.dart Normal file
View File

@@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class MuyuAssetsImage extends StatelessWidget {
final String image;
const MuyuAssetsImage({super.key, required this.image});
@override
Widget build(BuildContext context) {
return Center(
child: Image.asset(
image,
height: 200,
),
);
}
}