Commit 51332105 authored by Ade Fikriatul  Ilmi's avatar Ade Fikriatul Ilmi

wa

parent a827a998
...@@ -30,15 +30,10 @@ class WAChat extends StatelessWidget { ...@@ -30,15 +30,10 @@ class WAChat extends StatelessWidget {
return FloatingActionButton( return FloatingActionButton(
onPressed: () {}, onPressed: () {},
backgroundColor: Colors.green, backgroundColor: Colors.green,
child: FutureBuilder<List<dynamic>>( child: FutureBuilder<List<dynamic>>(
future: getSosmedDesc(), future: getWaDesc(),
builder: (BuildContext context, AsyncSnapshot snapshot) { builder: (BuildContext context, AsyncSnapshot snapshot) {
var pgm = snapshot.data[0]; var pgm = snapshot.data[0];
if (snapshot.hasError ||
snapshot.data == null ||
snapshot.connectionState == ConnectionState.waiting) {
return const CircularProgressIndicator();
}
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
wa = pgm['whatsapp']; wa = pgm['whatsapp'];
...@@ -50,7 +45,7 @@ class WAChat extends StatelessWidget { ...@@ -50,7 +45,7 @@ class WAChat extends StatelessWidget {
launchWhatsApp( launchWhatsApp(
phone: wa, phone: wa,
message: message:
'Hallo, saya tertarik dan saya ingin tahu lebih lanjut tentang program Medapp dari EKSAD'); 'Hallo, saya tertarik dan saya ingin tahu lebih lanjut tentang program Medapp dari EKSAD');
}, },
child: Spring.rotate( child: Spring.rotate(
endAngle: 360 * 10, endAngle: 360 * 10,
......
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