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.

29 lines
650B

  1. import 'package:flutter/material.dart';
  2. import '../../../themes/app_colors.dart';
  3. import '../../../themes/styles_text.dart';
  4. class GhostButtonWidget extends StatelessWidget {
  5. final String title;
  6. final Function() onPressed;
  7. final Color? color;
  8. const GhostButtonWidget({
  9. required this.title,
  10. required this.onPressed,
  11. this.color,
  12. });
  13. @override
  14. Widget build(BuildContext context) {
  15. return InkWell(
  16. onTap: onPressed,
  17. child: Text(
  18. title,
  19. style: StylesText.body3.copyWith(
  20. color: color ?? AppColors.black,
  21. decoration: TextDecoration.underline,
  22. ),
  23. ),
  24. );
  25. }
  26. }