Files
rkmmobile/lib/widgets/switch_with_subtitle.dart
Reginaldo 13e9eb4b24 criado widgets dropdown_with_subtitle.dart, input_with_subtitle.dart, onbackbutton.dart, switch_with_subtitle.dart
criada as telas main_register_citizen_screen.dart e main_procedures_screen.dart
2023-03-24 22:54:42 -03:00

35 lines
723 B
Dart

import 'package:flutter/material.dart';
import 'package:rkm/utils/color_palette.dart';
import 'package:rkm/widgets/text_default.dart';
class SwitchWithSubtitle extends StatelessWidget {
double width;
bool value;
var onChanged;
String title;
SwitchWithSubtitle({
required this.onChanged,
required this.value,
required this.width,
required this.title
});
@override
Widget build(BuildContext context) {
return Container(
width: width,
child: Row(
children: [
TextDefault(text: title,color: ColorPalette.black54,),
Spacer(),
Switch(
value: value,
onChanged:onChanged
)
],
),
);
}
}