This commit is contained in:
Patrick Alvin Alcala 2025-02-05 13:08:27 +08:00
parent 5b6134a5c3
commit ba5833afb2
5 changed files with 33 additions and 6 deletions

View file

@ -17,15 +17,17 @@ class PageBackgroundWidget extends StatelessWidget {
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'
: page == 'register'
? 'assets/register_background.webp'
: 'assets/background.webp'),
image: AssetImage(
page == 'login'
? 'assets/login_background.webp'
: page == 'register'
? '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.2,
opacity: 0.3,
),
gradient: const RadialGradient(
tileMode: TileMode.clamp,