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

View File

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