You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
777B

  1. import 'package:farm_tpf/utils/const_color.dart';
  2. import 'package:flutter/material.dart';
  3. class ButtonWidget extends StatelessWidget {
  4. final Function onPressed;
  5. final String title;
  6. ButtonWidget({@required this.title, @required this.onPressed});
  7. @override
  8. Widget build(BuildContext context) {
  9. return SizedBox(
  10. width: double.infinity,
  11. height: 55,
  12. child: FlatButton(
  13. onPressed: onPressed,
  14. color: AppColors.DEFAULT,
  15. shape: RoundedRectangleBorder(
  16. borderRadius: new BorderRadius.circular(7.0),
  17. ),
  18. child: Text(title.toUpperCase(),
  19. style: TextStyle(
  20. fontWeight: FontWeight.bold,
  21. color: AppColors.WHITE,
  22. fontSize: 18)),
  23. ),
  24. );
  25. }
  26. }