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

@@ -11,6 +11,8 @@ class CheckBoxTwoSubtitle extends StatelessWidget {
bool checkbox2;
var onChanged1;
var onChanged2;
var ontap1;
var ontap2;
CheckBoxTwoSubtitle({
this.width = double.infinity,
@@ -20,6 +22,8 @@ class CheckBoxTwoSubtitle extends StatelessWidget {
required this.subtitle2,
required this.onChanged1,
required this.onChanged2,
this.ontap1 = null,
this.ontap2 = null,
});
@override
@@ -33,18 +37,24 @@ class CheckBoxTwoSubtitle extends StatelessWidget {
value: checkbox1,
onChanged: onChanged1
),
Container(
width: width/2.5,
child: TextDefault(text: subtitle1,fontSize: 14,color: ColorPalette.black54,)
GestureDetector(
onTap: ontap1,
child: Container(
width: width/2.5,
child: TextDefault(text: subtitle1,fontSize: 14,color: ColorPalette.black54,)
),
),
Spacer(),
Checkbox(
value: checkbox2,
onChanged: onChanged2
),
Container(
width: width/3,
child: TextDefault(text: subtitle2,fontSize: 14,color: ColorPalette.black54)
GestureDetector(
onTap: ontap2,
child: Container(
width: width/3,
child: TextDefault(text: subtitle2,fontSize: 14,color: ColorPalette.black54)
),
),
],
),