Skip to content

Instantly share code, notes, and snippets.

@yadu-sayone
Created September 28, 2018 14:10
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/69bbb0728423ddc8e4ebb9e77b4c8643 to your computer and use it in GitHub Desktop.
Save yadu-sayone/69bbb0728423ddc8e4ebb9e77b4c8643 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class UnaryOperatorButton extends StatelessWidget {
UnaryOperatorButton({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.black, fontSize: 20.0),
),
fillColor: Colors.grey,
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment