update
This commit is contained in:
parent
941e9eaa5b
commit
4753926c34
4 changed files with 137 additions and 70 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue