update
This commit is contained in:
parent
ba5833afb2
commit
0edeeff6d4
6 changed files with 3 additions and 31 deletions
|
|
@ -15,8 +15,6 @@ class PageBackgroundWidget extends StatelessWidget {
|
|||
height: MediaQuery.of(context).size.height + 200,
|
||||
decoration: BoxDecoration(
|
||||
image: DecorationImage(
|
||||
// Image.asset('assets/ph_logo2.webp',
|
||||
// width: 192, cacheWidth: (192 * MediaQuery.of(context).devicePixelRatio).round()),
|
||||
image: AssetImage(
|
||||
page == 'login'
|
||||
? 'assets/login_background.webp'
|
||||
|
|
@ -24,10 +22,9 @@ class PageBackgroundWidget extends StatelessWidget {
|
|||
? 'assets/register_background.webp'
|
||||
: 'assets/background.webp',
|
||||
),
|
||||
// image: Image.asset('assets/login_background.webp', width: 192, cacheWidth: (192 * MediaQuery.of(context).devicePixelRatio).round()),
|
||||
fit: BoxFit.fitWidth,
|
||||
alignment: Alignment.topCenter,
|
||||
opacity: 0.3,
|
||||
fit: BoxFit.cover, // Ensures the background covers the entire container
|
||||
alignment: Alignment.center,
|
||||
opacity: 0.3, // Adjusts the opacity as needed
|
||||
),
|
||||
gradient: const RadialGradient(
|
||||
tileMode: TileMode.clamp,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue