Skip to content

Instantly share code, notes, and snippets.

@yadu-sayone
Created September 28, 2018 14:08
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 yadu-sayone/ca086525056dd5517c96018418c2f0a4 to your computer and use it in GitHub Desktop.
Save yadu-sayone/ca086525056dd5517c96018418c2f0a4 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class ZeroButton extends StatelessWidget {
ZeroButton({this.onPressed});
final Function onPressed;
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(5.0),
child: Container(
height: 60.0,
width: MediaQuery.of(context).size.width / 2.5,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(25.0),
color: Color.fromRGBO(56, 54, 56, 1.0)),
child: MaterialButton(
onPressed: onPressed,
child: Text(
"0",
style: TextStyle(color: Colors.white, fontSize: 20.0),
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment