YurEmptyItem function
Implementation
Widget YurEmptyItem(
String title,
String subtitle, {
EdgeInsetsGeometry? padding,
}) {
return Center(
child: Container(
padding: padding ?? e12,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const YurIcon(
icon: Icons.sentiment_dissatisfied_rounded,
size: 120,
color: primaryRed,
).animate(onComplete: (c) => c.repeat(reverse: true)).move(
duration: 500.ms,
curve: Curves.easeInOut,
begin: const Offset(0, -10),
end: const Offset(0, 10),
),
gap20,
YurText(
text: title,
textAlign: TextAlign.center,
fontWeight: FontWeight.w500,
fontSize: 24,
maxLines: 3,
),
gap12,
YurText(
text: subtitle,
textAlign: TextAlign.center,
fontSize: 12,
),
],
),
),
);
}