This commit is contained in:
Patrick Alvin Alcala 2025-02-05 13:38:12 +08:00
parent ba5833afb2
commit 0edeeff6d4
6 changed files with 3 additions and 31 deletions

View file

@ -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,