mirrored_repositories/Dr-Health/lib/src
// ignore_for_file: deprecated_member_use

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class PlatformFlatButton extends StatelessWidget {
  final Function handler;
  final Widget buttonChild;
  final Color color;

  PlatformFlatButton({@required this.buttonChild, @required this.color, @required this.handler});

  @override
  Widget build(BuildContext context) {
    return FlatButton(
      child: this.buttonChild,
      color: this.color,
      onPressed: this.handler,
      shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(15.0)),
    );
  }
}
