Skip to content

Instantly share code, notes, and snippets.

@yadu-sayone
Created September 28, 2018 14:05
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/d33a7167451fe4254dc917477524b3a4 to your computer and use it in GitHub Desktop.
Save yadu-sayone/d33a7167451fe4254dc917477524b3a4 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class NumberButton extends StatelessWidget {
NumberButton({this.text,this.onPressed});
final String text;
final Function onPressed;
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(5.0),
child: RawMaterialButton(
shape: const CircleBorder(),
constraints: BoxConstraints.tight(Size(60.0, 60.0)),
onPressed:onPressed,
child: Text(
text,
style: TextStyle(color: Colors.white, fontSize: 20.0),
),
fillColor: Color.fromRGBO(56, 54, 56, 1.0),
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment