add asset background

main
Julian Gegner 2023-03-06 18:51:00 +01:00
parent d18231966c
commit ebc5776e78
3 changed files with 10 additions and 2 deletions

View File

@ -7,4 +7,4 @@ DatabaseService databaseService = DatabaseMock();
// DatabaseService databaseService = DatabaseService.instance;
// set this to read settings from local json file instead of scanning a qr code
bool useLocalConfig = false;
bool useLocalConfig = true;

View File

@ -37,7 +37,14 @@ class MyHomePage extends StatelessWidget {
'${pageProvider.currentPageData['title']} ${isConfigured ? "Gruppe ${settingsProvider.settings?.group}" : ""}')
],
)),
body: pageProvider.currentPageData['page'],
body: Stack(alignment: Alignment.center, children: [
Image.asset(
'assets/ZI_logo.png',
opacity: const AlwaysStoppedAnimation(0.05),
width: MediaQuery.of(context).size.width * 0.8,
),
pageProvider.currentPageData['page'],
]),
bottomNavigationBar: NavigationBar(
onDestinationSelected: isConfigured
? pageProvider.setCurrentPage

View File

@ -48,3 +48,4 @@ flutter:
- assets/finish.mp3
- assets/group1.json
- assets/group3.json
- assets/ZI_logo.png