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
b0fc2c8b
Commit
b0fc2c8b
authored
Sep 26, 2022
by
Budi Prasetyo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/qorridi/medapp_eksad
parents
9fa277cb
e18fa4d4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
149 additions
and
72 deletions
+149
-72
userControl_api.dart
lib/api/userControl_api.dart
+12
-0
admin_contact.dart
lib/dashboard/admin/admin_contact.dart
+2
-2
admin_userControl.dart
lib/dashboard/admin/admin_userControl.dart
+43
-2
homepage.dart
lib/homepage.dart
+1
-1
about_us.dart
lib/screen/about_us.dart
+1
-1
footer.dart
lib/screen/footer.dart
+89
-65
home_user.dart
lib/screen_user/home_user.dart
+1
-1
No files found.
lib/api/userControl_api.dart
View file @
b0fc2c8b
...
@@ -3,9 +3,21 @@ import 'dart:convert';
...
@@ -3,9 +3,21 @@ import 'dart:convert';
import
'package:http/http.dart'
as
http
;
import
'package:http/http.dart'
as
http
;
var
qry
=
'https://dmsdev-api.eksad.com/gateway/medapp/v1/qry'
;
var
qry
=
'https://dmsdev-api.eksad.com/gateway/medapp/v1/qry'
;
var
cmd
=
'https://dmsdev-api.eksad.com/gateway/medapp/v1/cmd'
;
Future
<
List
<
dynamic
>>
getUserControl
()
async
{
Future
<
List
<
dynamic
>>
getUserControl
()
async
{
var
response
=
await
http
.
get
(
Uri
.
parse
(
'
$qry
/user/get'
));
var
response
=
await
http
.
get
(
Uri
.
parse
(
'
$qry
/user/get'
));
return
jsonDecode
(
response
.
body
)[
'data'
];
return
jsonDecode
(
response
.
body
)[
'data'
];
}
}
Future
<
bool
>
deleteUserControl
(
idUser
)
async
{
final
response
=
await
http
.
post
(
Uri
.
parse
(
'
$cmd
/user/updateUser'
),
body:
jsonEncode
({
"idUser"
:
idUser
}),
headers:
{
'Content-type'
:
'application/json; charset=UTF-8'
});
if
(
response
.
statusCode
==
200
)
{
return
true
;
}
else
{
return
false
;
}
}
lib/dashboard/admin/admin_contact.dart
View file @
b0fc2c8b
...
@@ -631,7 +631,7 @@ class _Dashboard4State extends State<Dashboard4> {
...
@@ -631,7 +631,7 @@ class _Dashboard4State extends State<Dashboard4> {
(
isSuccess
)
{
(
isSuccess
)
{
if
(
isSuccess
)
{
if
(
isSuccess
)
{
setState
(()
{});
setState
(()
{});
Scaffold
.
of
(
Scaffold
Messenger
.
of
(
this
.
context
)
this
.
context
)
.
showSnackBar
(
.
showSnackBar
(
const
SnackBar
(
const
SnackBar
(
...
@@ -640,7 +640,7 @@ class _Dashboard4State extends State<Dashboard4> {
...
@@ -640,7 +640,7 @@ class _Dashboard4State extends State<Dashboard4> {
),
),
);
);
}
else
{
}
else
{
Scaffold
.
of
(
Scaffold
Messenger
.
of
(
this
.
context
)
this
.
context
)
.
showSnackBar
(
.
showSnackBar
(
const
SnackBar
(
const
SnackBar
(
...
...
lib/dashboard/admin/admin_userControl.dart
View file @
b0fc2c8b
...
@@ -657,6 +657,48 @@ class _UserControlState extends State<UserControl> {
...
@@ -657,6 +657,48 @@ class _UserControlState extends State<UserControl> {
});
});
}
}
void
deleteUser
(
BuildContext
context
)
{
showDialog
(
context:
context
,
builder:
(
BuildContext
context
)
{
return
AlertDialog
(
title:
const
Text
(
"Warning"
),
content:
Text
(
"Are you sure want to delete data
${pgm['idUser']}
?"
),
actions:
<
Widget
>[
TextButton
(
child:
const
Text
(
"Yes"
),
onPressed:
()
{
Navigator
.
pop
(
context
);
deleteUserControl
(
pgm
[
'idUser'
])
.
then
((
isSuccess
)
{
if
(
isSuccess
)
{
setState
(()
{});
ScaffoldMessenger
.
of
(
this
.
context
)
.
showSnackBar
(
const
SnackBar
(
content:
Text
(
"Delete data success"
)));
}
else
{
ScaffoldMessenger
.
of
(
this
.
context
)
.
showSnackBar
(
const
SnackBar
(
content:
Text
(
"Delete data failed"
)));
}
});
},
),
TextButton
(
onPressed:
()
{
Navigator
.
pop
(
context
);
},
child:
const
Text
(
"No"
))
],
);
});
}
return
DataRow
(
cells:
[
return
DataRow
(
cells:
[
DataCell
(
Text
(
pgm
[
'idUser'
].
toString
())),
DataCell
(
Text
(
pgm
[
'idUser'
].
toString
())),
DataCell
(
Text
(
pgm
[
'namaRs'
].
toString
())),
DataCell
(
Text
(
pgm
[
'namaRs'
].
toString
())),
...
@@ -681,20 +723,19 @@ class _UserControlState extends State<UserControl> {
...
@@ -681,20 +723,19 @@ class _UserControlState extends State<UserControl> {
viewUser
(
context
);
viewUser
(
context
);
}
else
if
(
value
==
2
)
{
}
else
if
(
value
==
2
)
{
print
(
"you choose Delete..."
);
print
(
"you choose Delete..."
);
deleteUser
(
context
);
}
else
if
(
value
==
3
)
{
}
else
if
(
value
==
3
)
{
print
(
"you choose View..."
);
print
(
"you choose View..."
);
viewUser
(
context
);
viewUser
(
context
);
}
}
},
},
))
))
]);
]);
}).
toList
());
}).
toList
());
})
})
],
],
),
),
)
)
],
],
),
),
),
),
...
...
lib/homepage.dart
View file @
b0fc2c8b
...
@@ -63,7 +63,7 @@ class _HomePageState extends State<HomePage> {
...
@@ -63,7 +63,7 @@ class _HomePageState extends State<HomePage> {
const
Home3
(),
const
Home3
(),
const
Home4
(),
const
Home4
(),
ContactUs2
(),
ContactUs2
(),
const
Footer
(),
Footer
(),
],
],
),
),
);
);
...
...
lib/screen/about_us.dart
View file @
b0fc2c8b
...
@@ -63,7 +63,7 @@ class _AboutUsState extends State<AboutUs> {
...
@@ -63,7 +63,7 @@ class _AboutUsState extends State<AboutUs> {
const
Home3
(),
const
Home3
(),
const
Home4
(),
const
Home4
(),
ContactUs2
(),
ContactUs2
(),
const
Footer
(),
Footer
(),
],
],
),
),
);
);
...
...
lib/screen/footer.dart
View file @
b0fc2c8b
...
@@ -2,10 +2,15 @@ import 'package:flutter/material.dart';
...
@@ -2,10 +2,15 @@ import 'package:flutter/material.dart';
import
'package:font_awesome_flutter/font_awesome_flutter.dart'
;
import
'package:font_awesome_flutter/font_awesome_flutter.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
import
'package:medapp_eksad/api/setting_api.dart'
;
import
'package:medapp_eksad/api/setting_api.dart'
;
import
'package:medapp_eksad/api/sosmed_api.dart'
;
import
'package:url_launcher/url_launcher.dart'
;
import
'package:url_launcher/url_launcher.dart'
;
class
Footer
extends
StatelessWidget
{
class
Footer
extends
StatelessWidget
{
const
Footer
({
Key
?
key
})
:
super
(
key:
key
);
Footer
({
Key
?
key
})
:
super
(
key:
key
);
String
ln
=
''
;
String
tw
=
''
;
String
ig
=
''
;
String
yt
=
''
;
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
...
@@ -41,11 +46,12 @@ class Footer extends StatelessWidget {
...
@@ -41,11 +46,12 @@ class Footer extends StatelessWidget {
width:
screenSize
.
width
*
0.12
,
width:
screenSize
.
width
*
0.12
,
height:
screenSize
.
height
*
0.07
,
height:
screenSize
.
height
*
0.07
,
decoration:
const
BoxDecoration
(
decoration:
const
BoxDecoration
(
//color: Colors.lightBlueAccent,
//color: Colors.lightBlueAccent,
image:
DecorationImage
(
image:
DecorationImage
(
image:
AssetImage
(
image:
'assets/logo/medapp-logo.png'
),
AssetImage
(
'assets/logo/medapp-logo.png'
),
fit:
BoxFit
.
fill
)),
fit:
BoxFit
.
fill
),
),
),
),
const
Spacer
(
const
Spacer
(
flex:
8
,
flex:
8
,
...
@@ -54,11 +60,12 @@ class Footer extends StatelessWidget {
...
@@ -54,11 +60,12 @@ class Footer extends StatelessWidget {
width:
screenSize
.
width
*
0.1
,
width:
screenSize
.
width
*
0.1
,
height:
screenSize
.
height
*
0.08
,
height:
screenSize
.
height
*
0.08
,
decoration:
const
BoxDecoration
(
decoration:
const
BoxDecoration
(
//color: Colors.lightBlueAccent,
//color: Colors.lightBlueAccent,
image:
DecorationImage
(
image:
DecorationImage
(
image:
AssetImage
(
image:
'assets/logo/logo-eksad.png'
),
AssetImage
(
'assets/logo/logo-eksad.png'
),
fit:
BoxFit
.
fill
)),
fit:
BoxFit
.
fill
),
),
),
),
const
Spacer
(
const
Spacer
(
flex:
8
,
flex:
8
,
...
@@ -86,55 +93,72 @@ class Footer extends StatelessWidget {
...
@@ -86,55 +93,72 @@ class Footer extends StatelessWidget {
width:
screenSize
.
width
*
0.14
,
width:
screenSize
.
width
*
0.14
,
height:
screenSize
.
height
*
0.03
,
height:
screenSize
.
height
*
0.03
,
//color: Colors.blue,
//color: Colors.blue,
child:
Row
(
child:
FutureBuilder
<
List
<
dynamic
>>(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
future:
getSosmedDesc
(),
children:
[
builder:
(
BuildContext
context
,
AsyncSnapshot
snapshot
)
{
IconButton
(
var
pgm
=
snapshot
.
data
[
0
];
onPressed:
()
{
if
(
snapshot
.
hasError
||
launch
(
snapshot
.
data
==
null
||
'https://www.linkedin.com/company/pt-tiga-daya-digital-indonesia-triputra-group-eksad-technology'
);
snapshot
.
connectionState
==
ConnectionState
.
waiting
)
{
},
return
const
CircularProgressIndicator
();
icon:
const
Icon
(
}
FontAwesomeIcons
.
linkedinIn
,
return
Row
(
size:
30
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
),
children:
[
iconSize:
20
,
IconButton
(
),
onPressed:
()
{
IconButton
(
ln
=
pgm
[
'linkedin'
];
onPressed:
()
{
launch
(
ln
);
launch
(
// _launchLinkedIn();
'https://twitter.com/eksadtechnology/'
);
},
},
icon:
const
Icon
(
icon:
const
Icon
(
FontAwesomeIcons
.
linkedinIn
,
FontAwesomeIcons
.
twitter
,
size:
25
,
size:
30
,
),
),
iconSize:
25
,
iconSize:
20
,
color:
Colors
.
black
),
),
IconButton
(
IconButton
(
onPressed:
()
{
onPressed:
()
{
tw
=
pgm
[
'twitter'
];
launch
(
launch
(
tw
);
'https://www.instagram.com/eksad_technology/'
);
//_launchTwitter();
},
},
icon:
const
Icon
(
icon:
const
Icon
(
FontAwesomeIcons
.
instagram
,
FontAwesomeIcons
.
twitter
,
size:
30
,
size:
25
,
),
),
iconSize:
20
,
iconSize:
25
,
),
color:
Colors
.
black
,
IconButton
(
),
onPressed:
()
{
IconButton
(
launch
(
onPressed:
()
{
'https://www.youtube.com/channel/UCiZgIbpWgrAMrHW-TaS9EPw'
);
ig
=
pgm
[
'instagram'
];
},
launch
(
ig
);
icon:
const
Icon
(
// _launchInstagram();
FontAwesomeIcons
.
youtube
,
},
size:
30
,
icon:
const
Icon
(
),
FontAwesomeIcons
.
instagram
,
iconSize:
20
,
size:
25
,
)
),
],
iconSize:
25
,
color:
Colors
.
black
),
IconButton
(
onPressed:
()
{
yt
=
pgm
[
'youtube'
];
launch
(
yt
);
// _launchYoutube();
},
icon:
const
Icon
(
FontAwesomeIcons
.
youtube
,
size:
25
,
),
iconSize:
25
,
color:
Colors
.
black
)
],
);
},
),
),
),
),
const
Spacer
(
const
Spacer
(
flex:
8
,
flex:
8
,
...
@@ -285,9 +309,9 @@ class Footer extends StatelessWidget {
...
@@ -285,9 +309,9 @@ class Footer extends StatelessWidget {
height:
screenSize
.
height
*
0.3
,
height:
screenSize
.
height
*
0.3
,
child:
Text
(
child:
Text
(
'PT. Tiga Daya Digital Indonesia
\n
The East '
'PT. Tiga Daya Digital Indonesia
\n
The East '
'Tower 19th Floor
\n
Jl. Dr. Ide Anak Agung '
'Tower 19th Floor
\n
Jl. Dr. Ide Anak Agung '
'
\n
Gde Agung Blok E3.2 '
'
\n
Gde Agung Blok E3.2 '
'
\n
Mega Kuningan,
\n
Jakarta Selatan 12950'
,
'
\n
Mega Kuningan,
\n
Jakarta Selatan 12950'
,
style:
GoogleFonts
.
poppins
(
style:
GoogleFonts
.
poppins
(
fontSize:
16
,
fontSize:
16
,
height:
1.5
,
height:
1.5
,
...
@@ -310,9 +334,9 @@ class Footer extends StatelessWidget {
...
@@ -310,9 +334,9 @@ class Footer extends StatelessWidget {
height:
screenSize
.
height
*
0.13
,
height:
screenSize
.
height
*
0.13
,
child:
const
Center
(
child:
const
Center
(
child:
Text
(
child:
Text
(
'PT. Tiga Daya Digital Indonesia © 2018, All Rights Reserved.'
,
'PT. Tiga Daya Digital Indonesia © 2018, All Rights Reserved.'
,
style:
TextStyle
(
letterSpacing:
1.3
,
height:
1.4
,
fontSize:
17
),
style:
TextStyle
(
letterSpacing:
1.3
,
height:
1.4
,
fontSize:
17
),
)),
)),
)
)
],
],
));
));
...
...
lib/screen_user/home_user.dart
View file @
b0fc2c8b
...
@@ -63,7 +63,7 @@ class _HomePageUserState extends State<HomePageUser> {
...
@@ -63,7 +63,7 @@ class _HomePageUserState extends State<HomePageUser> {
const
Home3
(),
const
Home3
(),
const
Home4
(),
const
Home4
(),
ContactUs2
(),
ContactUs2
(),
const
Footer
(),
Footer
(),
],
],
),
),
);
);
...
...
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