Commit e18fa4d4 authored by Fikri's avatar Fikri

mengubah footer.dart

parent cf9d37ae
......@@ -63,7 +63,7 @@ class _HomePageState extends State<HomePage> {
const Home3(),
const Home4(),
ContactUs2(),
const Footer(),
Footer(),
],
),
);
......
......@@ -63,7 +63,7 @@ class _AboutUsState extends State<AboutUs> {
const Home3(),
const Home4(),
ContactUs2(),
const Footer(),
Footer(),
],
),
);
......
......@@ -17,7 +17,7 @@ class Footer extends StatelessWidget {
var screenSize = MediaQuery.of(context).size;
return Container(
width: screenSize.width,
height: screenSize.height * 0.78,
height: screenSize.height * 0.8,
color: Colors.white,
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
......@@ -95,18 +95,15 @@ class Footer extends StatelessWidget {
//color: Colors.blue,
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: () {
......@@ -161,6 +158,7 @@ class Footer extends StatelessWidget {
);
},
),
),
const Spacer(
flex: 8,
......@@ -277,7 +275,7 @@ class Footer extends StatelessWidget {
)),
Container(
width: screenSize.width * 0.25,
height: screenSize.height * 0.55,
height: screenSize.height * 0.6,
//color: Colors.blue,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
......@@ -437,7 +435,7 @@ class _EmailAPIState extends State<EmailAPI> {
return const CircularProgressIndicator();
}
return Container(
width: screenSize.width * 0.2,
width: screenSize.width * 0.25,
child: ListTile(
leading: const Icon(
Icons.mail,
......@@ -447,15 +445,14 @@ class _EmailAPIState extends State<EmailAPI> {
title: TextButton(
onPressed: () {
email = pgm['email'];
launch('mailto:$email?subject=Info MCS');
launch('mailto:$email?subject=Info Medapp');
},
// child: SettingAPI(),
child: Text(
pgm['email'],
style: GoogleFonts.poppins(
fontSize: 16, color: Colors.black87, letterSpacing: 1.1),
),
),
)),
),
);
},
......
......@@ -63,7 +63,7 @@ class _HomePageUserState extends State<HomePageUser> {
const Home3(),
const Home4(),
ContactUs2(),
const Footer(),
Footer(),
],
),
);
......
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