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.

39 lines
993 B

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;
const NoDataWidget({Key? key, required this.text, this.icon}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
height: double.infinity,
width: double.infinity,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
icon ??
Image.asset(
Assets.images.nodata.path,
width: 160.w,
height: 160.w,
),
SizedBox(
height: 8,
),
Text(
text,
style: TextStyle(fontSize: 28.sp,color:Color(0xFF666666) ),
),
SizedBox(
height: 60.w,
)
],
),
);
}
}