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,
|
backgroundColor: Colors.black,
|
||||||
foregroundColor: Colors.white,
|
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/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,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user