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
9d8c7357
Commit
9d8c7357
authored
Sep 30, 2022
by
Budi Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small screen buat demo
parent
24343d95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
131 additions
and
36 deletions
+131
-36
demo_user.dart
lib/screen_user/demo_user.dart
+131
-36
No files found.
lib/screen_user/demo_user.dart
View file @
9d8c7357
...
@@ -24,10 +24,8 @@ class DemoUser extends StatefulWidget {
...
@@ -24,10 +24,8 @@ 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);
...
@@ -41,26 +39,30 @@ class _DemoUserState extends State<DemoUser> {
...
@@ -41,26 +39,30 @@ class _DemoUserState extends State<DemoUser> {
appBar:
ResponsiveWidget
.
isSmallScreen
(
context
)
appBar:
ResponsiveWidget
.
isSmallScreen
(
context
)
?
AppBarKecil
()
?
AppBarKecil
()
:
AppbarHomeLargeUser
(
screenSize
,
context
,
Colors
.
black
,
Colors
.
black
,
:
AppbarHomeLargeUser
(
screenSize
,
context
,
Colors
.
black
,
Colors
.
black
,
Colors
.
black
,
Colors
.
black
,
Colors
.
black
,
Colors
.
blue
),
Colors
.
black
,
Colors
.
black
,
Colors
.
black
,
Colors
.
blue
),
drawer:
const
DrawerMedApp
(),
drawer:
const
DrawerMedApp
(),
body:
Container
(
body:
ResponsiveWidget
.
isSmallScreen
(
context
)
width:
screenSize
.
width
,
?
Container
(
height:
screenSize
.
height
,
padding:
EdgeInsets
.
symmetric
(
horizontal:
screenSize
.
width
*
0.1
),
child:
Column
(
width:
screenSize
.
width
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
height:
screenSize
.
height
,
children:
[
child:
Column
(
Center
(
child:
Text
(
'Welcome,
$mail
'
,
style:
GoogleFonts
.
poppins
(
fontSize:
25
),),),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
children:
[
Box
(
Center
(
wijet:
ElevatedButton
.
icon
(
child:
Text
(
onPressed:
()
{},
'Welcome,
$mail
'
,
icon:
Icon
(
style:
GoogleFonts
.
poppins
(
fontSize:
25
),
),
),
Card
(
child:
ListTile
(
onTap:
(){},
leading:
Icon
(
Icons
.
download
,
Icons
.
download
,
size:
40
,
size:
40
,
),
),
label
:
Text
(
title
:
Text
(
'Download APK'
,
'Download APK'
,
style:
GoogleFonts
.
poppins
(
style:
GoogleFonts
.
poppins
(
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
...
@@ -68,14 +70,14 @@ class _DemoUserState extends State<DemoUser> {
...
@@ -68,14 +70,14 @@ class _DemoUserState extends State<DemoUser> {
),
),
),
),
),
),
Box
(
Card
(
wijet:
ElevatedButton
.
icon
(
child:
ListTile
(
on
Pressed:
()
{},
on
Tap:
()
{},
icon
:
Icon
(
leading
:
Icon
(
Icons
.
tv
,
Icons
.
tv
,
size:
40
,
size:
40
,
),
),
label
:
Text
(
title
:
Text
(
'TV Display'
,
'TV Display'
,
style:
GoogleFonts
.
poppins
(
style:
GoogleFonts
.
poppins
(
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
...
@@ -83,14 +85,14 @@ class _DemoUserState extends State<DemoUser> {
...
@@ -83,14 +85,14 @@ class _DemoUserState extends State<DemoUser> {
),
),
),
),
),
),
Box
(
Card
(
wijet:
ElevatedButton
.
icon
(
child:
ListTile
(
on
Pressed:
()
{},
on
Tap:
()
{},
icon
:
Icon
(
leading
:
Icon
(
Icons
.
phone_android
,
Icons
.
phone_android
,
size:
40
,
size:
40
,
),
),
label
:
Text
(
title
:
Text
(
'Kiosk'
,
'Kiosk'
,
style:
GoogleFonts
.
poppins
(
style:
GoogleFonts
.
poppins
(
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
...
@@ -98,27 +100,120 @@ class _DemoUserState extends State<DemoUser> {
...
@@ -98,27 +100,120 @@ class _DemoUserState extends State<DemoUser> {
),
),
),
),
),
),
Box
(
Card
(
wijet:
ElevatedButton
.
icon
(
child:
ListTile
(
on
Pressed:
()
{},
on
Tap:
()
{},
icon
:
Icon
(
leading
:
Icon
(
Icons
.
browser_updated
,
Icons
.
browser_updated
,
size:
40
,
size:
40
,
),
),
label
:
Text
(
title
:
Text
(
'Web Admin'
,
'Web
site
Admin'
,
style:
GoogleFonts
.
poppins
(
style:
GoogleFonts
.
poppins
(
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
textAlign:
TextAlign
.
center
,
textAlign:
TextAlign
.
center
,
),
),
),
),
),
),
ElevatedButton
(
onPressed:
()
{
context
.
read
<
FirebaseAuthMethods
>().
signOut
(
context
);
Navigator
.
pushNamed
(
context
,
'/'
);
},
style:
ElevatedButton
.
styleFrom
(
primary:
const
Color
(
0xff1e5ea8
),
fixedSize:
const
Size
(
130
,
45
),
onPrimary:
Colors
.
red
,
),
child:
const
Text
(
'Logout'
,
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
19
,
fontWeight:
FontWeight
.
w500
),
),
),
],
],
),
),
],
)
),
:
Container
(
),
width:
screenSize
.
width
,
height:
screenSize
.
height
,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
Center
(
child:
Text
(
'Welcome,
$mail
'
,
style:
GoogleFonts
.
poppins
(
fontSize:
25
),
),
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
Box
(
wijet:
ElevatedButton
.
icon
(
onPressed:
()
{},
icon:
Icon
(
Icons
.
download
,
size:
40
,
),
label:
Text
(
'Download APK'
,
style:
GoogleFonts
.
poppins
(
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
textAlign:
TextAlign
.
center
,
),
),
),
Box
(
wijet:
ElevatedButton
.
icon
(
onPressed:
()
{},
icon:
Icon
(
Icons
.
tv
,
size:
40
,
),
label:
Text
(
'TV Display'
,
style:
GoogleFonts
.
poppins
(
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
textAlign:
TextAlign
.
center
,
),
),
),
Box
(
wijet:
ElevatedButton
.
icon
(
onPressed:
()
{},
icon:
Icon
(
Icons
.
phone_android
,
size:
40
,
),
label:
Text
(
'Kiosk'
,
style:
GoogleFonts
.
poppins
(
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
textAlign:
TextAlign
.
center
,
),
),
),
Box
(
wijet:
ElevatedButton
.
icon
(
onPressed:
()
{},
icon:
Icon
(
Icons
.
browser_updated
,
size:
40
,
),
label:
Text
(
'Web Admin'
,
style:
GoogleFonts
.
poppins
(
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
textAlign:
TextAlign
.
center
,
),
),
),
],
),
],
),
),
);
);
}
}
...
...
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