This commit is contained in:
Patrick Alvin Alcala 2025-02-14 13:07:37 +08:00
parent 941e9eaa5b
commit 4753926c34
4 changed files with 137 additions and 70 deletions

View file

@ -3,8 +3,9 @@ import 'package:flutter/material.dart';
class PageBackgroundWidget extends StatelessWidget {
final Widget child;
final String? page;
final double? height;
const PageBackgroundWidget({super.key, required this.child, this.page});
const PageBackgroundWidget({super.key, required this.child, this.page, this.height});
@override
Widget build(BuildContext context) {
@ -12,7 +13,7 @@ class PageBackgroundWidget extends StatelessWidget {
scrollDirection: Axis.vertical,
child: Container(
alignment: Alignment.center,
height: MediaQuery.of(context).size.height + 200,
height: height ?? MediaQuery.of(context).size.height + 200,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(