ajustes de inputs com apenas numeros, mascaras, textos
This commit is contained in:
@@ -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,)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user