ft/adds background widget to dashboard_page

This commit is contained in:
itsscb 2023-10-26 03:55:48 +02:00
parent d0687e2d3f
commit 35d8ed0221
3 changed files with 13 additions and 7 deletions

View File

@ -29,7 +29,7 @@ void main() async {
backgroundColor: Colors.black, backgroundColor: Colors.black,
foregroundColor: Colors.white, foregroundColor: Colors.white,
)), )),
home: Background(child: LoginPage()), home: const Background(child: LoginPage()),
), ),
); );
} }

View File

@ -1,4 +1,5 @@
import 'package:app/gapi/client.dart'; import 'package:app/gapi/client.dart';
import 'package:app/widgets/background.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class DashboardPage extends StatefulWidget { class DashboardPage extends StatefulWidget {
@ -33,7 +34,7 @@ class _DashboardPageState extends State<DashboardPage> {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
backgroundColor: Colors.black, // backgroundColor: Colors.black,
flexibleSpace: Image.asset( flexibleSpace: Image.asset(
'lib/assets/logo_300x200.png', 'lib/assets/logo_300x200.png',
height: 80, height: 80,
@ -51,10 +52,16 @@ class _DashboardPageState extends State<DashboardPage> {
// ), // ),
// ], // ],
), ),
body: Text( body: Background(
widget.client.accessToken, child: Column(
style: const TextStyle( children: [
color: Colors.white, Text(
widget.client.accessToken,
style: const TextStyle(
color: Colors.white,
),
),
],
), ),
), ),
); );

View File

@ -52,7 +52,6 @@ class _LoginPageState extends State<LoginPage> {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
backgroundColor: Colors.black,
flexibleSpace: Image.asset( flexibleSpace: Image.asset(
'lib/assets/logo_300x200.png', 'lib/assets/logo_300x200.png',
height: 80, height: 80,