ajustes de inputs com apenas numeros, mascaras, textos

This commit is contained in:
Reginaldo
2024-02-09 16:14:44 -03:00
parent a94bff8ebd
commit 8cf5569840
10 changed files with 176 additions and 79 deletions

View File

@@ -9,31 +9,36 @@ class CheckBoxSubtitle extends StatelessWidget {
bool checkbox;
var onChanged;
double fontSize;
var ontap;
CheckBoxSubtitle({
this.width = double.infinity,
required this.checkbox,
required this.subtitle,
required this.onChanged,
this.fontSize = 14
this.fontSize = 14,
this.ontap = null
});
@override
Widget build(BuildContext context) {
return Container(
width: width,
child: Row(
children: [
Checkbox(
value: checkbox,
onChanged: onChanged
),
Container(
width: width,
child: TextDefault(text: subtitle,fontSize: fontSize,color: ColorPalette.black54,)
),
],
return GestureDetector(
onTap: ontap,
child: Container(
width: width,
child: Row(
children: [
Checkbox(
value: checkbox,
onChanged: onChanged
),
Container(
width: width,
child: TextDefault(text: subtitle,fontSize: fontSize,color: ColorPalette.black54,maxLines: 2,)
),
],
),
),
);
}