File tree Expand file tree Collapse file tree 4 files changed +34
-4
lines changed Expand file tree Collapse file tree 4 files changed +34
-4
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:acta/to_do/components/custom_app_bar.dart' ;
2
+ import 'package:acta/to_do/servicies/user/api_state.dart' ;
3
+ import 'package:firebase_auth/firebase_auth.dart' ;
4
+ import 'package:flutter/material.dart' ;
5
+ import 'package:flutter_platform_widgets/flutter_platform_widgets.dart' ;
6
+ import 'package:provider/provider.dart' ;
7
+
8
+ class Account extends StatelessWidget {
9
+ const Account ({Key ? key}) : super (key: key);
10
+
11
+ @override
12
+ Widget build (BuildContext context) {
13
+ final user = Provider .of <ApiState >(context);
14
+
15
+ return PlatformScaffold (
16
+ appBar: customAppBar (context: context, title: 'Account Settings' ),
17
+ body: Column (
18
+ children: [
19
+ ElevatedButton (
20
+ child: const Text ('sign out' ),
21
+ onPressed: () {
22
+ FirebaseAuth .instance.signOut ();
23
+ user.updateUser (null );
24
+ },
25
+ )
26
+ ],
27
+ ),
28
+ );
29
+ }
30
+ }
Original file line number Diff line number Diff line change 1
1
import 'dart:io' ;
2
2
3
+ import 'package:acta/account/account.dart' ;
3
4
import 'package:acta/constants/acta_icons_icons.dart' ;
4
5
import 'package:acta/to_do/screens/home/home.dart' ;
5
- import 'package:acta/to_do/screens/login/login.dart' ;
6
6
import 'package:flutter/material.dart' ;
7
7
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart' ;
8
8
@@ -15,7 +15,7 @@ class BottomAppbarWrapper extends StatefulWidget {
15
15
class _BottomAppbarWrapperState extends State <BottomAppbarWrapper > {
16
16
List <Widget > pages = [
17
17
const Home (),
18
- PlatformScaffold (),
18
+ const Account (),
19
19
];
20
20
int currentIndex = 0 ;
21
21
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: A simple todo Flutter project.
3
3
4
4
publish_to : ' none' # Remove this line if you wish to publish to pub.dev
5
5
6
- version : 1.0.5 +1
6
+ version : 1.0.6 +1
7
7
8
8
environment :
9
9
sdk : ' >=2.15.1 <3.0.0'
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " acta" ,
3
- "version" : " 1.0.5 " ,
3
+ "version" : " 1.0.6 " ,
4
4
"description" : " A productivity app, with many tools contained in a single package." ,
5
5
"scripts" : {
6
6
"start" : " cd backend/ && npm start"
You can’t perform that action at this time.
0 commit comments