Skip to content

Instantly share code, notes, and snippets.

@VB10
Created July 9, 2019 20:55
Show Gist options
  • Save VB10/59835194e78a84d2c57d89d0821f228a to your computer and use it in GitHub Desktop.
Save VB10/59835194e78a84d2c57d89d0821f228a to your computer and use it in GitHub Desktop.
Healtho Rounded Widget
class RoundedButtonWidget extends StatelessWidget {
const RoundedButtonWidget(
{Key key, @required this.child, @required this.onPress, this.color})
: super(key: key);
final Widget child;
final VoidCallback onPress;
final Color color;
@override
Widget build(BuildContext context) {
return RaisedButton(
color: color,
child: this.child,
shape: OutlineInputBorder(
borderRadius: BorderRadius.circular(UIHelper.Space25),
borderSide: BorderSide(color: Colors.white10)),
onPressed: this.onPress,
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment