31 lines
819 B
Dart
Executable File
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,
|
|
),
|
|
);
|
|
}
|
|
}
|