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:
Reginaldo
2023-03-24 22:54:42 -03:00
parent 9677a9ce71
commit 13e9eb4b24
13 changed files with 1550 additions and 40 deletions

View File

@@ -0,0 +1,68 @@
import 'package:flutter/material.dart';
import 'package:rkm/widgets/text_default.dart';
import '../utils/color_palette.dart';
import '../utils/const_variable.dart';
import 'dropdown_button_default.dart';
import 'input_text.dart';
class DropdownWithSubtitle extends StatelessWidget {
String subtitle;
String hintDropdown;
String? select;
double widthSubtitle;
double widthDropdown;
double widthContainerDropdown;
List<String> list;
var onChanged;
DropdownWithSubtitle({
required this.subtitle,
required this.select,
required this.widthDropdown,
required this.widthContainerDropdown,
required this.widthSubtitle,
required this.hintDropdown,
required this.onChanged,
required this.list,
});
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.symmetric(horizontal: 10),
padding: const EdgeInsets.symmetric(vertical: 5.0),
child: Column(
children: [
// Container(
// width: widthSubtitle,
// height: 40,
// padding: const EdgeInsets.all(8.0),
// child: TextDefault(
// text: subtitle,
// color: ColorPalette.black54,
// fontSize: 18,
// fontWeigth: FontWeight.bold,
// ),
// ),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5),
border: Border.all(color: ColorPalette.black54)
),
margin: EdgeInsets.symmetric(horizontal: 5),
padding: EdgeInsets.symmetric(horizontal: 2),
child: DropDownButtonDefault(
title: hintDropdown,
fontSize: 15,
width: widthDropdown,
widthContainer: widthContainerDropdown,
select: select,
list: list,
onChanged: onChanged,
),
),
],
),
);
}
}