Created
November 17, 2019 12:06
-
-
Save ShivamGoyal1899/322e7e71b2d22b2e4be76985ce54e991 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class VoicePay extends StatefulWidget { | |
@override | |
_VoicePayState createState() => _VoicePayState(); | |
} | |
class _VoicePayState extends State<VoicePay> { | |
@override | |
Widget build(BuildContext context) { | |
return AlertDialog( | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.all( | |
Radius.circular(25), | |
), | |
), | |
title: Text( | |
'VoicePay', | |
textAlign: TextAlign.center, | |
style: TextStyle(fontWeight: FontWeight.w700, fontSize: 25.0), | |
), | |
content: Column( | |
mainAxisSize: MainAxisSize.min, | |
mainAxisAlignment: MainAxisAlignment.end, | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: <Widget>[ | |
Image.asset('assets/images/listening.gif'), | |
SizedBox(height: 10.0), | |
Container( | |
alignment: Alignment.center, | |
height: 45.0, | |
child: Text( | |
'Tap on mic to VoicePay', | |
style: TextStyle(fontSize: 20.0), | |
textAlign: TextAlign.center, | |
), | |
), | |
SizedBox(height: 30.0), | |
Row( | |
mainAxisSize: MainAxisSize.max, | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
children: <Widget>[ | |
IconButton( | |
icon: Icon(Icons.keyboard), | |
onPressed: () {}, | |
), | |
IconButton( | |
icon: Icon(Icons.mic), | |
onPressed: () {}, | |
), | |
IconButton( | |
icon: Icon(Icons.translate), | |
onPressed: () {}, | |
), | |
], | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment