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,23 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:news/cubits/languageJsonCubit.dart';
class CustomTextLabel extends StatelessWidget {
final String text;
final TextStyle? textStyle;
final TextAlign? textAlign;
final int? maxLines;
final TextOverflow? overflow;
final bool? softWrap;
const CustomTextLabel({super.key, required this.text, this.textStyle, this.textAlign, this.maxLines, this.overflow, this.softWrap});
@override
Widget build(BuildContext context) {
return BlocBuilder<LanguageJsonCubit, LanguageJsonState>(
builder: (context, state) {
return Text(context.read<LanguageJsonCubit>().getTranslatedLabels(text), maxLines: maxLines, overflow: overflow, softWrap: softWrap, style: textStyle, textAlign: textAlign);
},
);
}
}