Commit 0ec0a13f authored by Fikri's avatar Fikri

edit footer

parent d3b4e2f5
......@@ -93,17 +93,20 @@ class Footer extends StatelessWidget {
width: screenSize.width * 0.14,
height: screenSize.height * 0.03,
//color: Colors.blue,
child: FutureBuilder<List<dynamic>>(
child: FutureBuilder<List<dynamic>>(
future: getSosmedDesc(),
builder: (BuildContext context, AsyncSnapshot snapshot) {
builder: (BuildContext context,
AsyncSnapshot snapshot) {
var pgm = snapshot.data[0];
if (snapshot.hasError ||
snapshot.data == null ||
snapshot.connectionState == ConnectionState.waiting) {
snapshot.connectionState ==
ConnectionState.waiting) {
return const CircularProgressIndicator();
}
return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
mainAxisAlignment:
MainAxisAlignment.spaceEvenly,
children: [
IconButton(
onPressed: () {
......@@ -134,7 +137,7 @@ class Footer extends StatelessWidget {
onPressed: () {
ig = pgm['instagram'];
launch(ig);
// _launchInstagram();
// _launchInstagram();
},
icon: const Icon(
FontAwesomeIcons.instagram,
......@@ -146,7 +149,7 @@ class Footer extends StatelessWidget {
onPressed: () {
yt = pgm['youtube'];
launch(yt);
// _launchYoutube();
// _launchYoutube();
},
icon: const Icon(
FontAwesomeIcons.youtube,
......@@ -158,7 +161,6 @@ class Footer extends StatelessWidget {
);
},
),
),
const Spacer(
flex: 8,
......@@ -443,16 +445,17 @@ class _EmailAPIState extends State<EmailAPI> {
color: Colors.black,
),
title: TextButton(
onPressed: () {
email = pgm['email'];
launch('mailto:$email?subject=Info MCS');
},
// child: SettingAPI(),
child: Text(
pgm['email'],
style: GoogleFonts.poppins(
fontSize: 16, color: Colors.black87, letterSpacing: 1.1),
)),
onPressed: () {
email = pgm['email'];
launch('mailto:$email?subject=Info MCS');
},
// child: SettingAPI(),
child: Text(
pgm['email'],
style: GoogleFonts.poppins(
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