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
This commit is contained in:
34
lib/widgets/switch_with_subtitle.dart
Normal file
34
lib/widgets/switch_with_subtitle.dart
Normal file
@@ -0,0 +1,34 @@
|
||||
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
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user