elCaribe app - customization and branding

This commit is contained in:
2025-12-12 19:09:42 -04:00
parent 9e5d0d8ebf
commit ba7deac9f3
402 changed files with 31833 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
import 'package:news/ui/widgets/customTextLabel.dart';
import 'package:news/ui/styles/colors.dart';
class CustomTextButton extends StatelessWidget {
final Function onTap;
final Color? color;
final String? text;
final ButtonStyle? buttonStyle;
final Widget? textWidget;
const CustomTextButton({super.key, required this.onTap, this.color, this.text, this.buttonStyle, this.textWidget});
@override
Widget build(BuildContext context) {
return TextButton(
style: buttonStyle ?? ButtonStyle(overlayColor: WidgetStateProperty.all(Colors.transparent), foregroundColor: WidgetStateProperty.all(darkSecondaryColor)),
onPressed: () {
onTap();
},
child: textWidget ?? CustomTextLabel(text: text!, textStyle: Theme.of(context).textTheme.bodyMedium!.copyWith(color: color, fontWeight: FontWeight.normal)),
);
}
}