mirrored_repositories/bmi_calculator_by_flutter/lib
import 'package:flutter/material.dart';
import 'constant.dart';
class BottomButton extends StatelessWidget {
  BottomButton({this.title,this.onPressed});
  final String title;
  final Function onPressed;
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onPressed,
      child: Container(
        child: Center(child: Text(title,style: kBottomText,)),
        color: kBottomContainerColor,
        margin: EdgeInsets.only(top: 10.0),
        width: double.infinity,
        height: kBottomContainerHeight,
      ),
    );
  }
}