You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
504 B

import 'package:new_recook/utils/headers.dart';
///图片button
class ImgButton extends StatelessWidget {
final VoidCallback? onPressed;
final double? width;
final double? height;
final String? path;
const ImgButton(
{Key? key, this.onPressed, this.width, this.height, this.path})
: super(key: key);
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: onPressed,
child: Image.asset(path!, height: height, width: width),
);
}
}