This commit is contained in:
Patrick Alvin Alcala 2025-02-05 13:47:08 +08:00
parent 0edeeff6d4
commit 87d8bb483e
4 changed files with 5 additions and 1 deletions

View file

@ -32,6 +32,7 @@ class MainPage extends StatelessWidget {
resizeToAvoidBottomInset: false,
body: SingleChildScrollView(
child: PageBackgroundWidget(
page: 'menu',
child: Center(
child: Column(
children: [

View file

@ -20,7 +20,9 @@ class PageBackgroundWidget extends StatelessWidget {
? 'assets/login_background.webp'
: page == 'register'
? 'assets/register_background.webp'
: 'assets/background.webp',
: page == 'menu'
? 'assets/menu_background.webp'
: 'assets/background.webp',
),
fit: BoxFit.cover, // Ensures the background covers the entire container
alignment: Alignment.center,