ft/adds background widget to dashboard_page
This commit is contained in:
parent
d0687e2d3f
commit
35d8ed0221
@ -29,7 +29,7 @@ void main() async {
|
||||
backgroundColor: Colors.black,
|
||||
foregroundColor: Colors.white,
|
||||
)),
|
||||
home: Background(child: LoginPage()),
|
||||
home: const Background(child: LoginPage()),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@ -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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user