criada a tela edit_procedures_screen.dart
This commit is contained in:
@@ -8,15 +8,19 @@ class DropDownButtonDefault extends StatelessWidget {
|
||||
var onChanged;
|
||||
String? select;
|
||||
String title;
|
||||
double fontSize;
|
||||
List<String> list;
|
||||
double width;
|
||||
double widthContainer;
|
||||
|
||||
DropDownButtonDefault({
|
||||
required this.onChanged,
|
||||
required this.select,
|
||||
required this.title,
|
||||
required this.list,
|
||||
required this.width
|
||||
required this.width,
|
||||
this.fontSize = 15,
|
||||
this.widthContainer = 300
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -34,9 +38,12 @@ class DropDownButtonDefault extends StatelessWidget {
|
||||
value: select,
|
||||
items: list.map((value) => DropdownMenuItem(
|
||||
value: value,
|
||||
child: TextDefault(
|
||||
text: value,
|
||||
fontSize: 15,
|
||||
child: Container(
|
||||
width: widthContainer,
|
||||
child: TextDefault(
|
||||
text: value,
|
||||
fontSize: fontSize,
|
||||
),
|
||||
),
|
||||
)
|
||||
).toList(),
|
||||
|
||||
@@ -5,10 +5,14 @@ import 'package:rkm/widgets/text_default.dart';
|
||||
class SubtitleContainers extends StatelessWidget {
|
||||
String title;
|
||||
double width;
|
||||
bool separeted;
|
||||
double padding;
|
||||
|
||||
SubtitleContainers({
|
||||
required this.title,
|
||||
this.width = double.infinity
|
||||
this.width = double.infinity,
|
||||
this.separeted = true,
|
||||
this.padding = 10
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -17,12 +21,12 @@ class SubtitleContainers extends StatelessWidget {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Container(
|
||||
padding: EdgeInsets.all(10),
|
||||
padding: EdgeInsets.all(padding),
|
||||
width: width,
|
||||
color: ColorPalette.white,
|
||||
child: TextDefault(text: title,color: ColorPalette.black54),
|
||||
),
|
||||
Divider(color: Colors.black54,endIndent: 10,indent: 10,)
|
||||
separeted?Divider(color: Colors.black54,endIndent: 10,indent: 10,):Container()
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user