feat : error widget and error json
This commit is contained in:
14880
assets/anim/error.json
14880
assets/anim/error.json
File diff suppressed because one or more lines are too long
22
packages/core/lib/presentation/widget/error_widget.dart
Normal file
22
packages/core/lib/presentation/widget/error_widget.dart
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:rasadyar_core/core.dart';
|
||||||
|
|
||||||
|
class ErrorWidget extends StatelessWidget {
|
||||||
|
const ErrorWidget({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Row(),
|
||||||
|
Assets.anim.error.lottie(width: 160.w, height: 160.h),
|
||||||
|
Text(
|
||||||
|
'مشکلی پیش آمده\nدوباره تلاش کنید..',
|
||||||
|
style: AppFonts.yekan20.copyWith(color: AppColor.textColor),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user