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:
@@ -10,7 +10,7 @@ import 'input_search_text.dart';
|
||||
class AlertDialogDefault {
|
||||
|
||||
@override
|
||||
alert(BuildContext context,controller,Widget list,) {
|
||||
alert_with_search(BuildContext context,controller,Widget list,) {
|
||||
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
double height = MediaQuery.of(context).size.height;
|
||||
@@ -40,4 +40,39 @@ class AlertDialogDefault {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
alert(BuildContext context,String title,String subtitle,String textButtom) {
|
||||
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
double height = MediaQuery.of(context).size.height;
|
||||
|
||||
return showDialog(
|
||||
context: context,
|
||||
builder: (context){
|
||||
return AlertDialog(
|
||||
title: TextDefault(
|
||||
text: title,
|
||||
color: ColorPalette.black54,
|
||||
textAlign: TextAlign.center,
|
||||
fontWeigth: FontWeight.bold,
|
||||
),
|
||||
content: TextDefault(
|
||||
text: subtitle,
|
||||
color: ColorPalette.black54,
|
||||
maxLines: 4,
|
||||
),
|
||||
actions: [
|
||||
ButtonDefault(
|
||||
onPressed: ()=>Navigator.pop(context),
|
||||
title: textButtom,
|
||||
width: width*0.85,
|
||||
textColor: ColorPalette.white,
|
||||
borderColor: ColorPalette.appBar,
|
||||
background: ColorPalette.appBar,
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user