Skip to content

Instantly share code, notes, and snippets.

@ShivamGoyal1899
Created November 17, 2019 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShivamGoyal1899/322e7e71b2d22b2e4be76985ce54e991 to your computer and use it in GitHub Desktop.
Save ShivamGoyal1899/322e7e71b2d22b2e4be76985ce54e991 to your computer and use it in GitHub Desktop.
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