update
This commit is contained in:
parent
0edeeff6d4
commit
87d8bb483e
4 changed files with 5 additions and 1 deletions
BIN
assets/menu_background.webp
Normal file
BIN
assets/menu_background.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 210 KiB |
|
|
@ -32,6 +32,7 @@ class MainPage extends StatelessWidget {
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
child: PageBackgroundWidget(
|
child: PageBackgroundWidget(
|
||||||
|
page: 'menu',
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,8 @@ class PageBackgroundWidget extends StatelessWidget {
|
||||||
? 'assets/login_background.webp'
|
? 'assets/login_background.webp'
|
||||||
: page == 'register'
|
: page == 'register'
|
||||||
? 'assets/register_background.webp'
|
? 'assets/register_background.webp'
|
||||||
|
: page == 'menu'
|
||||||
|
? 'assets/menu_background.webp'
|
||||||
: 'assets/background.webp',
|
: 'assets/background.webp',
|
||||||
),
|
),
|
||||||
fit: BoxFit.cover, // Ensures the background covers the entire container
|
fit: BoxFit.cover, // Ensures the background covers the entire container
|
||||||
|
|
|
||||||
|
|
@ -36,3 +36,4 @@ flutter:
|
||||||
- assets/background.webp
|
- assets/background.webp
|
||||||
- assets/login_background.webp
|
- assets/login_background.webp
|
||||||
- assets/register_background.webp
|
- assets/register_background.webp
|
||||||
|
- assets/menu_background.webp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue