criada as telas, complementary_sheet_screen.dart, consumption_markers_screen.dart, eligibility_assessment_screen.dart, home_visit_screen.dart, procedures_screen.dart, service_dental_screen.dart,service_home_screen.dart, service_individual_screen.dart
criado o model service_home_check_condition_model.dart criado o widget check_box_subtitle.dart incrementado o const_variable.dart
This commit is contained in:
38
lib/widgets/check_box_subtitle.dart
Normal file
38
lib/widgets/check_box_subtitle.dart
Normal file
@@ -0,0 +1,38 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/utils/color_palette.dart';
|
||||
import 'package:rkm/widgets/text_default.dart';
|
||||
|
||||
class CheckBoxSubtitle extends StatelessWidget {
|
||||
|
||||
double width;
|
||||
String subtitle;
|
||||
bool checkbox;
|
||||
var onChanged;
|
||||
|
||||
CheckBoxSubtitle({
|
||||
this.width = double.infinity,
|
||||
required this.checkbox,
|
||||
required this.subtitle,
|
||||
required this.onChanged,
|
||||
});
|
||||
|
||||
@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: 15,color: ColorPalette.black54,)
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user