27 lines
582 B
Dart
27 lines
582 B
Dart
|
|
import 'package:flutter/material.dart';
|
|
import 'package:novyronst/common/help/help_image.dart';
|
|
|
|
class NovyImgBg extends StatelessWidget {
|
|
const NovyImgBg({super.key,
|
|
required this.imgBg,
|
|
this.width,
|
|
this.height,
|
|
this.child
|
|
});
|
|
|
|
final String imgBg;
|
|
final double? width;
|
|
final double? height;
|
|
final Widget? child;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Stack(
|
|
children: [
|
|
HelpImage.asset(imgBg, width: width, height: height),
|
|
Positioned.fill(child: Center(child: child) ?? Container()),
|
|
],
|
|
);
|
|
}
|
|
} |