Commit 0ec0a13f authored by Fikri's avatar Fikri

edit footer

parent d3b4e2f5
...@@ -93,17 +93,20 @@ class Footer extends StatelessWidget { ...@@ -93,17 +93,20 @@ 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: FutureBuilder<List<dynamic>>( child: FutureBuilder<List<dynamic>>(
future: getSosmedDesc(), future: getSosmedDesc(),
builder: (BuildContext context, AsyncSnapshot snapshot) { builder: (BuildContext context,
AsyncSnapshot snapshot) {
var pgm = snapshot.data[0]; var pgm = snapshot.data[0];
if (snapshot.hasError || if (snapshot.hasError ||
snapshot.data == null || snapshot.data == null ||
snapshot.connectionState == ConnectionState.waiting) { snapshot.connectionState ==
ConnectionState.waiting) {
return const CircularProgressIndicator(); return const CircularProgressIndicator();
} }
return Row( return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment:
MainAxisAlignment.spaceEvenly,
children: [ children: [
IconButton( IconButton(
onPressed: () { onPressed: () {
...@@ -134,7 +137,7 @@ class Footer extends StatelessWidget { ...@@ -134,7 +137,7 @@ class Footer extends StatelessWidget {
onPressed: () { onPressed: () {
ig = pgm['instagram']; ig = pgm['instagram'];
launch(ig); launch(ig);
// _launchInstagram(); // _launchInstagram();
}, },
icon: const Icon( icon: const Icon(
FontAwesomeIcons.instagram, FontAwesomeIcons.instagram,
...@@ -146,7 +149,7 @@ class Footer extends StatelessWidget { ...@@ -146,7 +149,7 @@ class Footer extends StatelessWidget {
onPressed: () { onPressed: () {
yt = pgm['youtube']; yt = pgm['youtube'];
launch(yt); launch(yt);
// _launchYoutube(); // _launchYoutube();
}, },
icon: const Icon( icon: const Icon(
FontAwesomeIcons.youtube, FontAwesomeIcons.youtube,
...@@ -158,7 +161,6 @@ class Footer extends StatelessWidget { ...@@ -158,7 +161,6 @@ class Footer extends StatelessWidget {
); );
}, },
), ),
), ),
const Spacer( const Spacer(
flex: 8, flex: 8,
...@@ -443,16 +445,17 @@ class _EmailAPIState extends State<EmailAPI> { ...@@ -443,16 +445,17 @@ class _EmailAPIState extends State<EmailAPI> {
color: Colors.black, color: Colors.black,
), ),
title: TextButton( title: TextButton(
onPressed: () { onPressed: () {
email = pgm['email']; email = pgm['email'];
launch('mailto:$email?subject=Info MCS'); launch('mailto:$email?subject=Info MCS');
}, },
// child: SettingAPI(), // child: SettingAPI(),
child: Text( child: Text(
pgm['email'], pgm['email'],
style: GoogleFonts.poppins( style: GoogleFonts.poppins(
fontSize: 16, color: Colors.black87, letterSpacing: 1.1), fontSize: 16, color: Colors.black87, letterSpacing: 1.1),
)), ),
),
), ),
); );
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment