Commit e18fa4d4 authored by Fikri's avatar Fikri

mengubah footer.dart

parent cf9d37ae
...@@ -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(),
], ],
), ),
); );
......
...@@ -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(),
], ],
), ),
); );
......
...@@ -17,7 +17,7 @@ class Footer extends StatelessWidget { ...@@ -17,7 +17,7 @@ class Footer extends StatelessWidget {
var screenSize = MediaQuery.of(context).size; var screenSize = MediaQuery.of(context).size;
return Container( return Container(
width: screenSize.width, width: screenSize.width,
height: screenSize.height * 0.78, height: screenSize.height * 0.8,
color: Colors.white, color: Colors.white,
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
...@@ -49,7 +49,7 @@ class Footer extends StatelessWidget { ...@@ -49,7 +49,7 @@ class Footer extends StatelessWidget {
//color: Colors.lightBlueAccent, //color: Colors.lightBlueAccent,
image: DecorationImage( image: DecorationImage(
image: image:
AssetImage('assets/logo/medapp-logo.png'), AssetImage('assets/logo/medapp-logo.png'),
fit: BoxFit.fill), fit: BoxFit.fill),
), ),
), ),
...@@ -63,7 +63,7 @@ class Footer extends StatelessWidget { ...@@ -63,7 +63,7 @@ class Footer extends StatelessWidget {
//color: Colors.lightBlueAccent, //color: Colors.lightBlueAccent,
image: DecorationImage( image: DecorationImage(
image: image:
AssetImage('assets/logo/logo-eksad.png'), AssetImage('assets/logo/logo-eksad.png'),
fit: BoxFit.fill), fit: BoxFit.fill),
), ),
), ),
...@@ -95,18 +95,15 @@ class Footer extends StatelessWidget { ...@@ -95,18 +95,15 @@ class Footer extends StatelessWidget {
//color: Colors.blue, //color: Colors.blue,
child: FutureBuilder<List<dynamic>>( child: FutureBuilder<List<dynamic>>(
future: getSosmedDesc(), future: getSosmedDesc(),
builder: (BuildContext context, builder: (BuildContext context, AsyncSnapshot snapshot) {
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 == snapshot.connectionState == ConnectionState.waiting) {
ConnectionState.waiting) {
return const CircularProgressIndicator(); return const CircularProgressIndicator();
} }
return Row( return Row(
mainAxisAlignment: mainAxisAlignment: MainAxisAlignment.spaceEvenly,
MainAxisAlignment.spaceEvenly,
children: [ children: [
IconButton( IconButton(
onPressed: () { onPressed: () {
...@@ -161,6 +158,7 @@ class Footer extends StatelessWidget { ...@@ -161,6 +158,7 @@ class Footer extends StatelessWidget {
); );
}, },
), ),
), ),
const Spacer( const Spacer(
flex: 8, flex: 8,
...@@ -277,7 +275,7 @@ class Footer extends StatelessWidget { ...@@ -277,7 +275,7 @@ class Footer extends StatelessWidget {
)), )),
Container( Container(
width: screenSize.width * 0.25, width: screenSize.width * 0.25,
height: screenSize.height * 0.55, height: screenSize.height * 0.6,
//color: Colors.blue, //color: Colors.blue,
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
...@@ -311,9 +309,9 @@ class Footer extends StatelessWidget { ...@@ -311,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 \nThe East ' 'PT. Tiga Daya Digital Indonesia \nThe East '
'Tower 19th Floor \nJl. Dr. Ide Anak Agung ' 'Tower 19th Floor \nJl. Dr. Ide Anak Agung '
'\nGde Agung Blok E3.2 ' '\nGde Agung Blok E3.2 '
'\nMega Kuningan, \nJakarta Selatan 12950', '\nMega Kuningan, \nJakarta Selatan 12950',
style: GoogleFonts.poppins( style: GoogleFonts.poppins(
fontSize: 16, fontSize: 16,
height: 1.5, height: 1.5,
...@@ -336,9 +334,9 @@ class Footer extends StatelessWidget { ...@@ -336,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),
)), )),
) )
], ],
)); ));
...@@ -437,7 +435,7 @@ class _EmailAPIState extends State<EmailAPI> { ...@@ -437,7 +435,7 @@ class _EmailAPIState extends State<EmailAPI> {
return const CircularProgressIndicator(); return const CircularProgressIndicator();
} }
return Container( return Container(
width: screenSize.width * 0.2, width: screenSize.width * 0.25,
child: ListTile( child: ListTile(
leading: const Icon( leading: const Icon(
Icons.mail, Icons.mail,
...@@ -445,17 +443,16 @@ class _EmailAPIState extends State<EmailAPI> { ...@@ -445,17 +443,16 @@ 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 Medapp');
}, },
// 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),
), )),
),
), ),
); );
}, },
......
...@@ -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(),
], ],
), ),
); );
......
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