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
d3b4e2f5
Commit
d3b4e2f5
authored
Sep 26, 2022
by
Fikri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
consume api get untuk public
parent
92a9251b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
63 deletions
+87
-63
footer.dart
lib/screen/footer.dart
+87
-63
No files found.
lib/screen/footer.dart
View file @
d3b4e2f5
...
...
@@ -2,17 +2,22 @@ import 'package:flutter/material.dart';
import
'package:font_awesome_flutter/font_awesome_flutter.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
import
'package:medapp_eksad/api/setting_api.dart'
;
import
'package:medapp_eksad/api/sosmed_api.dart'
;
import
'package:url_launcher/url_launcher.dart'
;
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
Widget
build
(
BuildContext
context
)
{
var
screenSize
=
MediaQuery
.
of
(
context
).
size
;
return
Container
(
width:
screenSize
.
width
,
height:
screenSize
.
height
*
0.8
,
height:
screenSize
.
height
*
0.
7
8
,
color:
Colors
.
white
,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
...
...
@@ -41,11 +46,12 @@ class Footer extends StatelessWidget {
width:
screenSize
.
width
*
0.12
,
height:
screenSize
.
height
*
0.07
,
decoration:
const
BoxDecoration
(
//color: Colors.lightBlueAccent,
image:
DecorationImage
(
image:
AssetImage
(
'assets/logo/medapp-logo.png'
),
fit:
BoxFit
.
fill
)),
//color: Colors.lightBlueAccent,
image:
DecorationImage
(
image:
AssetImage
(
'assets/logo/medapp-logo.png'
),
fit:
BoxFit
.
fill
),
),
),
const
Spacer
(
flex:
8
,
...
...
@@ -54,11 +60,12 @@ class Footer extends StatelessWidget {
width:
screenSize
.
width
*
0.1
,
height:
screenSize
.
height
*
0.08
,
decoration:
const
BoxDecoration
(
//color: Colors.lightBlueAccent,
image:
DecorationImage
(
image:
AssetImage
(
'assets/logo/logo-eksad.png'
),
fit:
BoxFit
.
fill
)),
//color: Colors.lightBlueAccent,
image:
DecorationImage
(
image:
AssetImage
(
'assets/logo/logo-eksad.png'
),
fit:
BoxFit
.
fill
),
),
),
const
Spacer
(
flex:
8
,
...
...
@@ -86,55 +93,72 @@ class Footer extends StatelessWidget {
width:
screenSize
.
width
*
0.14
,
height:
screenSize
.
height
*
0.03
,
//color: Colors.blue,
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
IconButton
(
onPressed:
()
{
launch
(
'https://www.linkedin.com/company/pt-tiga-daya-digital-indonesia-triputra-group-eksad-technology'
);
},
icon:
const
Icon
(
FontAwesomeIcons
.
linkedinIn
,
size:
30
,
),
iconSize:
20
,
),
IconButton
(
onPressed:
()
{
launch
(
'https://twitter.com/eksadtechnology/'
);
},
icon:
const
Icon
(
FontAwesomeIcons
.
twitter
,
size:
30
,
),
iconSize:
20
,
),
IconButton
(
onPressed:
()
{
launch
(
'https://www.instagram.com/eksad_technology/'
);
},
icon:
const
Icon
(
FontAwesomeIcons
.
instagram
,
size:
30
,
),
iconSize:
20
,
),
IconButton
(
onPressed:
()
{
launch
(
'https://www.youtube.com/channel/UCiZgIbpWgrAMrHW-TaS9EPw'
);
},
icon:
const
Icon
(
FontAwesomeIcons
.
youtube
,
size:
30
,
),
iconSize:
20
,
)
],
child:
FutureBuilder
<
List
<
dynamic
>>(
future:
getSosmedDesc
(),
builder:
(
BuildContext
context
,
AsyncSnapshot
snapshot
)
{
var
pgm
=
snapshot
.
data
[
0
];
if
(
snapshot
.
hasError
||
snapshot
.
data
==
null
||
snapshot
.
connectionState
==
ConnectionState
.
waiting
)
{
return
const
CircularProgressIndicator
();
}
return
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
IconButton
(
onPressed:
()
{
ln
=
pgm
[
'linkedin'
];
launch
(
ln
);
// _launchLinkedIn();
},
icon:
const
Icon
(
FontAwesomeIcons
.
linkedinIn
,
size:
25
,
),
iconSize:
25
,
color:
Colors
.
black
),
IconButton
(
onPressed:
()
{
tw
=
pgm
[
'twitter'
];
launch
(
tw
);
//_launchTwitter();
},
icon:
const
Icon
(
FontAwesomeIcons
.
twitter
,
size:
25
,
),
iconSize:
25
,
color:
Colors
.
black
,
),
IconButton
(
onPressed:
()
{
ig
=
pgm
[
'instagram'
];
launch
(
ig
);
// _launchInstagram();
},
icon:
const
Icon
(
FontAwesomeIcons
.
instagram
,
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
(
flex:
8
,
...
...
@@ -251,7 +275,7 @@ class Footer extends StatelessWidget {
)),
Container
(
width:
screenSize
.
width
*
0.25
,
height:
screenSize
.
height
*
0.
6
,
height:
screenSize
.
height
*
0.
55
,
//color: Colors.blue,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
...
@@ -411,7 +435,7 @@ class _EmailAPIState extends State<EmailAPI> {
return
const
CircularProgressIndicator
();
}
return
Container
(
width:
screenSize
.
width
*
0.2
5
,
width:
screenSize
.
width
*
0.2
,
child:
ListTile
(
leading:
const
Icon
(
Icons
.
mail
,
...
...
@@ -421,7 +445,7 @@ class _EmailAPIState extends State<EmailAPI> {
title:
TextButton
(
onPressed:
()
{
email
=
pgm
[
'email'
];
launch
(
'mailto:
$email
?subject=Info M
edapp
'
);
launch
(
'mailto:
$email
?subject=Info M
CS
'
);
},
// child: SettingAPI(),
child:
Text
(
...
...
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