Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medapp_eksad
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qorri_di
medapp_eksad
Commits
3f11b019
Commit
3f11b019
authored
Sep 30, 2022
by
Budi Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo user + logout firebase
parent
dfc1191d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
58 deletions
+75
-58
appbar_home.dart
lib/appbar/appbar_home.dart
+2
-1
main_dashboard_admin.dart
lib/dashboard/admin/main_dashboard_admin.dart
+2
-0
demo_user.dart
lib/screen_user/demo_user.dart
+71
-57
No files found.
lib/appbar/appbar_home.dart
View file @
3f11b019
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:medapp_eksad/firebase/firebase_auth_methods.dart'
;
import
'package:medapp_eksad/widget/button_appbar.dart'
;
import
'package:medapp_eksad/widget/button_appbar.dart'
;
import
'package:medapp_eksad/register.dart'
;
import
'package:medapp_eksad/register.dart'
;
import
'package:provider/provider.dart'
;
import
'package:provider/provider.dart'
;
import
'package:medapp_eksad/firebase/firebase_auth_methods.dart'
;
AppBar
AppbarHomeLarge
(
Size
screenSize
,
BuildContext
context
,
Color
home
,
AppBar
AppbarHomeLarge
(
Size
screenSize
,
BuildContext
context
,
Color
home
,
...
...
lib/dashboard/admin/main_dashboard_admin.dart
View file @
3f11b019
...
@@ -6,6 +6,8 @@ import 'package:medapp_eksad/dashboard/admin/admin_setting.dart';
...
@@ -6,6 +6,8 @@ import 'package:medapp_eksad/dashboard/admin/admin_setting.dart';
import
'package:medapp_eksad/dashboard/admin/admin_sosmed.dart'
;
import
'package:medapp_eksad/dashboard/admin/admin_sosmed.dart'
;
import
'package:medapp_eksad/dashboard/admin/admin_userControl.dart'
;
import
'package:medapp_eksad/dashboard/admin/admin_userControl.dart'
;
import
'package:medapp_eksad/dashboard/admin/admin_whatsapp.dart'
;
import
'package:medapp_eksad/dashboard/admin/admin_whatsapp.dart'
;
import
'package:provider/provider.dart'
;
import
'package:medapp_eksad/firebase/firebase_auth_methods.dart'
;
class
DashboardAdmin
extends
StatefulWidget
{
class
DashboardAdmin
extends
StatefulWidget
{
const
DashboardAdmin
({
Key
?
key
})
:
super
(
key:
key
);
const
DashboardAdmin
({
Key
?
key
})
:
super
(
key:
key
);
...
...
lib/screen_user/demo_user.dart
View file @
3f11b019
...
@@ -6,6 +6,8 @@ import '../appbar/appbar_home.dart';
...
@@ -6,6 +6,8 @@ import '../appbar/appbar_home.dart';
import
'../widget/drawer.dart'
;
import
'../widget/drawer.dart'
;
import
'../widget/responsive.dart'
;
import
'../widget/responsive.dart'
;
import
'../widget/whatsapp.dart'
;
import
'../widget/whatsapp.dart'
;
import
'package:provider/provider.dart'
;
import
'package:medapp_eksad/firebase/firebase_auth_methods.dart'
;
void
setPageTitle
(
String
title
,
BuildContext
context
)
{
void
setPageTitle
(
String
title
,
BuildContext
context
)
{
SystemChrome
.
setApplicationSwitcherDescription
(
ApplicationSwitcherDescription
(
SystemChrome
.
setApplicationSwitcherDescription
(
ApplicationSwitcherDescription
(
...
@@ -22,11 +24,17 @@ class DemoUser extends StatefulWidget {
...
@@ -22,11 +24,17 @@ class DemoUser extends StatefulWidget {
}
}
class
_DemoUserState
extends
State
<
DemoUser
>
{
class
_DemoUserState
extends
State
<
DemoUser
>
{
final
GlobalKey
<
ScaffoldState
>
_scaffoldKey
=
new
GlobalKey
<
ScaffoldState
>();
final
GlobalKey
<
ScaffoldState
>
_scaffoldKey
=
new
GlobalKey
<
ScaffoldState
>();
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
setPageTitle
(
'Free Demo Medapp'
,
context
);
setPageTitle
(
'Free Demo Medapp'
,
context
);
var
screenSize
=
MediaQuery
.
of
(
context
).
size
;
var
screenSize
=
MediaQuery
.
of
(
context
).
size
;
final
user
=
context
.
read
<
FirebaseAuthMethods
>().
user
;
final
String
mail
=
user
.
email
!;
return
Scaffold
(
return
Scaffold
(
key:
_scaffoldKey
,
key:
_scaffoldKey
,
floatingActionButton:
WAChat
(),
floatingActionButton:
WAChat
(),
...
@@ -38,7 +46,11 @@ class _DemoUserState extends State<DemoUser> {
...
@@ -38,7 +46,11 @@ class _DemoUserState extends State<DemoUser> {
body:
Container
(
body:
Container
(
width:
screenSize
.
width
,
width:
screenSize
.
width
,
height:
screenSize
.
height
,
height:
screenSize
.
height
,
child:
Row
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
Center
(
child:
Text
(
'Welcome,
$mail
'
,
style:
GoogleFonts
.
poppins
(
fontSize:
25
),),),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
children:
[
Box
(
Box
(
...
@@ -104,6 +116,8 @@ class _DemoUserState extends State<DemoUser> {
...
@@ -104,6 +116,8 @@ class _DemoUserState extends State<DemoUser> {
],
],
),
),
],
),
),
),
);
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment