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.

42 lines
1.1 KiB

import 'package:new_recook/gen/assets.gen.dart';
import 'package:new_recook/utils/headers.dart';
class NoDataWidget extends StatelessWidget {
final String text;
final Widget? icon;
final double? height;
final Widget? btn;
const NoDataWidget({Key? key, required this.text, this.icon, this.height = 500, this.btn, }) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
height: this.height,
width: double.infinity,
alignment: Alignment.center,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
icon ??
Image.asset(
Assets.images.imgNoData.path,
width: 260.w,
height: 260.w,
),
SizedBox(
height: 16.w,
),
Text(
text,
style: TextStyle(fontSize: 28.sp,color:Color(0xFFBBBBBB) ),
),
24.hb,
btn!=null? btn!
:SizedBox()
],
),
);
}
}