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

31 lines
819 B
Dart
Executable File

import 'package:flutter/material.dart';
import 'package:nb_utils/nb_utils.dart';
@Deprecated('Please use NoDataWidget instead of BackgroundComponent')
class BackgroundComponent extends StatelessWidget {
final String? image;
final String? text;
final String? subTitle;
final double? size;
final double? height;
final double? width;
final bool isError;
BackgroundComponent({this.image, this.text, this.subTitle, this.size, this.isError = false, this.height, this.width});
@override
Widget build(BuildContext context) {
return SizedBox(
height: height ?? context.height(),
width: width ?? context.width() - 16,
child: NoDataWidget(
image: image,
title: text,
imageSize: Size(size ?? 150, size ?? 150),
subTitle: subTitle,
),
);
}
}