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.

23 lines
539 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 MaterialButton(
padding: EdgeInsets.zero,
onPressed: onPressed,
child: Image.asset(path!, height: height, width: width),
);
}
}