update
This commit is contained in:
parent
7b89a8a471
commit
e6aebd9a64
5 changed files with 35 additions and 26 deletions
|
|
@ -7,26 +7,30 @@ class PageBackgroundWidget extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
alignment: Alignment.center,
|
||||
height: MediaQuery.of(context).size.height,
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(image: AssetImage('assets/background.webp'), fit: BoxFit.cover, opacity: 0.1),
|
||||
gradient: RadialGradient(
|
||||
tileMode: TileMode.clamp,
|
||||
colors: [
|
||||
// Color.fromRGBO(132, 84, 125, 1),
|
||||
// Color.fromRGBO(96, 48, 90, 1),
|
||||
Color.fromRGBO(45, 15, 43, 1),
|
||||
Color.fromRGBO(77, 29, 73, 1),
|
||||
// Color.fromRGBO(241, 220, 223, 1),
|
||||
],
|
||||
// begin: Alignment.topCenter,
|
||||
// end: Alignment.bottomCenter,
|
||||
return SingleChildScrollView(
|
||||
scrollDirection: Axis.vertical,
|
||||
// physics: NeverScrollableScrollPhysics(),
|
||||
child: Container(
|
||||
alignment: Alignment.center,
|
||||
height: MediaQuery.of(context).size.height,
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(image: AssetImage('assets/background2.webp'), fit: BoxFit.fitWidth, opacity: 0.2),
|
||||
gradient: RadialGradient(
|
||||
tileMode: TileMode.clamp,
|
||||
colors: [
|
||||
// Color.fromRGBO(132, 84, 125, 1),
|
||||
// Color.fromRGBO(96, 48, 90, 1),
|
||||
Color.fromRGBO(45, 15, 43, 1),
|
||||
Color.fromRGBO(77, 29, 73, 1),
|
||||
// Color.fromRGBO(241, 220, 223, 1),
|
||||
],
|
||||
// begin: Alignment.topCenter,
|
||||
// end: Alignment.bottomCenter,
|
||||
),
|
||||
),
|
||||
),
|
||||
child: Center(
|
||||
child: child,
|
||||
));
|
||||
child: Center(
|
||||
child: child,
|
||||
)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue