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
5b81d029
Commit
5b81d029
authored
Sep 01, 2022
by
Budi Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard
parent
be5db7ae
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
192 additions
and
1 deletion
+192
-1
main_dashboard.dart
lib/dashboard/main_dashboard.dart
+174
-0
main.dart
lib/main.dart
+2
-0
contact_us2.dart
lib/screen/contact_us/contact_us2.dart
+1
-1
pubspec.lock
pubspec.lock
+14
-0
pubspec.yaml
pubspec.yaml
+1
-0
No files found.
lib/dashboard/main_dashboard.dart
0 → 100644
View file @
5b81d029
import
'package:flutter/material.dart'
;
import
'package:easy_sidemenu/easy_sidemenu.dart'
;
class
Dashboard
extends
StatefulWidget
{
const
Dashboard
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
Dashboard
>
createState
()
=>
_DashboardState
();
}
class
_DashboardState
extends
State
<
Dashboard
>
{
PageController
page
=
PageController
();
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
toolbarHeight:
60
,
backgroundColor:
Colors
.
white
,
leadingWidth:
230
,
leading:
Padding
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
8
,
horizontal:
30
),
child:
Container
(
width:
200
,
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
AssetImage
(
'assets/logo/medapp-logo.png'
),
fit:
BoxFit
.
fill
)),
),
),
actions:
[
TextButton
.
icon
(
onPressed:
(){},
icon:
Icon
(
Icons
.
remove_red_eye
),
label:
Text
(
'Site Online'
),)
],
),
body:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
SideMenu
(
showToggle:
true
,
controller:
page
,
// onDisplayModeChanged: (mode) {
// print(mode);
// },
style:
SideMenuStyle
(
openSideMenuWidth:
220
,
displayMode:
SideMenuDisplayMode
.
auto
,
hoverColor:
Colors
.
blue
[
100
],
selectedColor:
Colors
.
white
,
selectedTitleTextStyle:
const
TextStyle
(
color:
Colors
.
blueAccent
),
selectedIconColor:
Colors
.
blueAccent
[
700
],
// decoration: BoxDecoration(
// borderRadius: BorderRadius.all(Radius.circular(10)),
// ),
backgroundColor:
Colors
.
blue
,
),
title:
Column
(
children:
[
// ConstrainedBox(
// constraints: const BoxConstraints(
// maxHeight: 150,
// maxWidth: 150,
// ),
// child: Image.asset(
// 'assets/logo/medapp-logo.png',
// ),
// ),
// const Divider(
// indent: 8.0,
// endIndent: 8.0,
// ),
Container
(
height:
20
,)
],
),
footer:
const
Padding
(
padding:
EdgeInsets
.
all
(
8.0
),
child:
Text
(
'Medapp By Eksad'
,
style:
TextStyle
(
fontSize:
15
),
),
),
items:
[
SideMenuItem
(
priority:
0
,
title:
'Dashboard'
,
onTap:
()
{
page
.
jumpToPage
(
0
);
},
icon:
const
Icon
(
Icons
.
home
),
// badgeContent: const Text(
// '3',
// style: TextStyle(color: Colors.white),
// ),
),
SideMenuItem
(
priority:
2
,
title:
'Files'
,
onTap:
()
{
page
.
jumpToPage
(
2
);
},
icon:
const
Icon
(
Icons
.
file_copy_rounded
),
),
SideMenuItem
(
priority:
3
,
title:
'WhatsApp Number'
,
onTap:
()
{
page
.
jumpToPage
(
3
);
},
icon:
const
Icon
(
Icons
.
whatsapp
),
),
SideMenuItem
(
priority:
4
,
title:
'Settings'
,
onTap:
()
{
page
.
jumpToPage
(
4
);
},
icon:
const
Icon
(
Icons
.
settings
),
),
],
),
Expanded
(
child:
PageView
(
controller:
page
,
children:
[
Container
(
color:
Colors
.
white
,
child:
const
Center
(
child:
Text
(
'Dashboard'
,
style:
TextStyle
(
fontSize:
35
),
),
),
),
Container
(
color:
Colors
.
white
,
child:
const
Center
(
child:
Text
(
'Users'
,
style:
TextStyle
(
fontSize:
35
),
),
),
),
Container
(
color:
Colors
.
white
,
child:
const
Center
(
child:
Text
(
'Files'
,
style:
TextStyle
(
fontSize:
35
),
),
),
),
Container
(
color:
Colors
.
white
,
child:
const
Center
(
child:
Text
(
'Download'
,
style:
TextStyle
(
fontSize:
35
),
),
),
),
Container
(
color:
Colors
.
white
,
child:
const
Center
(
child:
Text
(
'Settings'
,
style:
TextStyle
(
fontSize:
35
),
),
),
),
],
),
),
],
),
);
}
}
lib/main.dart
View file @
5b81d029
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:medapp_eksad/dashboard/main_dashboard.dart'
;
import
'package:medapp_eksad/homepage.dart'
;
import
'package:medapp_eksad/homepage.dart'
;
import
'package:medapp_eksad/login.dart'
;
import
'package:medapp_eksad/login.dart'
;
import
'package:medapp_eksad/screen/contact_us/contact_us.dart'
;
import
'package:medapp_eksad/screen/contact_us/contact_us.dart'
;
...
@@ -23,6 +24,7 @@ class MyApp extends StatelessWidget {
...
@@ -23,6 +24,7 @@ class MyApp extends StatelessWidget {
'/solutions'
:
(
context
)
=>
const
Solutions
(),
'/solutions'
:
(
context
)
=>
const
Solutions
(),
'/contact'
:
(
context
)
=>
const
ContactUs
(),
'/contact'
:
(
context
)
=>
const
ContactUs
(),
'/login'
:
(
context
)
=>
const
login
(),
'/login'
:
(
context
)
=>
const
login
(),
'/dashboard'
:
(
context
)
=>
const
Dashboard
()
},
},
);
);
}
}
...
...
lib/screen/contact_us/contact_us2.dart
View file @
5b81d029
...
@@ -54,7 +54,7 @@ class ContactUs2 extends StatelessWidget {
...
@@ -54,7 +54,7 @@ class ContactUs2 extends StatelessWidget {
'
\n
'
'
\n
'
'an outsourcing partner '
'an outsourcing partner '
'you can trust and thrive with'
,
'you can trust and thrive with'
,
textAlign:
TextAlign
.
justify
,
textAlign:
TextAlign
.
left
,
style:
GoogleFonts
.
poppins
(
style:
GoogleFonts
.
poppins
(
color:
Colors
.
white
,
color:
Colors
.
white
,
fontSize:
30
,
fontSize:
30
,
...
...
pubspec.lock
View file @
5b81d029
...
@@ -8,6 +8,13 @@ packages:
...
@@ -8,6 +8,13 @@ packages:
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.8.2"
version: "2.8.2"
badges:
dependency: transitive
description:
name: badges
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
boolean_selector:
boolean_selector:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -78,6 +85,13 @@ packages:
...
@@ -78,6 +85,13 @@ packages:
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "5.0.2"
version: "5.0.2"
easy_sidemenu:
dependency: "direct main"
description:
name: easy_sidemenu
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.1"
fake_async:
fake_async:
dependency: transitive
dependency: transitive
description:
description:
...
...
pubspec.yaml
View file @
5b81d029
...
@@ -35,6 +35,7 @@ dependencies:
...
@@ -35,6 +35,7 @@ dependencies:
font_awesome_flutter
:
^10.1.0
font_awesome_flutter
:
^10.1.0
intl
:
^0.17.0
intl
:
^0.17.0
dropdown_search
:
^5.0.2
dropdown_search
:
^5.0.2
easy_sidemenu
:
^0.3.1
sidebarx
:
^0.7.0
sidebarx
:
^0.7.0
flutter_web_plugins
:
flutter_web_plugins
:
sdk
:
flutter
sdk
:
flutter
...
...
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