-
Notifications
You must be signed in to change notification settings - Fork 0
/
HomePage.dart
42 lines (38 loc) · 947 Bytes
/
HomePage.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import 'package:flutter/material.dart';
import 'services.dart';
class HomePage extends StatelessWidget {
HomePage({@required this.auth});
final AuthBase auth;
Future<void> _signOut() async{
await auth.signOut();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Home page'),
centerTitle: true,
backgroundColor: Colors.orange[900],
actions: <Widget>[
FlatButton(
child: Text('Logout',
style: TextStyle(
fontSize: 18,
color:Colors.white,
),
),
onPressed: _signOut,
)
],
),
body: Center(
child: Text('Welcome to the app',
style: TextStyle(
fontSize: 20,
color: Colors.orange[900],
),
),
),
);
}
}