Files
AYS-User/lib/component/empty_error_state_widget.dart
2026-02-22 10:47:09 +08:00

27 lines
669 B
Dart
Executable File

import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
class EmptyStateWidget extends StatelessWidget {
final double? height;
final double? width;
const EmptyStateWidget({this.height, this.width});
@override
Widget build(BuildContext context) {
return Lottie.asset('assets/lottie/empty_lottie.json', height: 150, repeat: true);
}
}
class ErrorStateWidget extends StatelessWidget {
final double? height;
final double? width;
const ErrorStateWidget({this.height, this.width});
@override
Widget build(BuildContext context) {
return Lottie.asset('assets/lottie/error_lottie.json', height: 110, repeat: true);
}
}