update on settings and customer background

This commit is contained in:
Patrick Alvin Alcala 2025-03-26 14:41:48 +08:00
parent 05c3208cad
commit 6424e82d54
18 changed files with 227 additions and 42 deletions

View file

@ -21,15 +21,16 @@ class CustomerPagebackgroundWidget extends StatelessWidget {
height: height ?? MediaQuery.of(context).size.height + 200,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
page == 'login'
? 'assets/login_background.webp'
: page == 'register'
? 'assets/register_background.webp'
: page == 'menu'
? 'assets/menu_background.webp'
: 'assets/background.webp',
),
// image: AssetImage(
// page == 'login'
// ? 'assets/login_background.webp'
// : page == 'register'
// ? 'assets/register_background.webp'
// : page == 'menu'
// ? 'assets/menu_background.webp'
// : 'assets/background.webp',
// ),
image: AssetImage('assets/customer_background.webp'),
fit: BoxFit.cover, // Ensures the background covers the entire container
alignment: Alignment.center,
opacity: 0.1, // Adjusts the opacity as needed
@ -37,8 +38,8 @@ class CustomerPagebackgroundWidget extends StatelessWidget {
gradient: RadialGradient(
tileMode: TileMode.clamp,
colors: [
Color.fromRGBO(19, 8, 26, 1),
Color.fromRGBO(43, 22, 60, 1),
Color.fromRGBO(15, 6, 20, 1),
Color.fromRGBO(23, 12, 32, 1),
],
),
),