criada a tela perfil_screen.dart

This commit is contained in:
Reginaldo
2023-06-05 11:22:10 -03:00
parent 8623f372b7
commit 5c27265419
8 changed files with 228 additions and 32 deletions

View File

@@ -0,0 +1,40 @@
import 'package:flutter/material.dart';
import 'package:rkm_educa_app/utils/colors.dart';
import 'package:rkm_educa_app/widgets/buttom_custom.dart';
import 'package:rkm_educa_app/widgets/text_custom.dart';
class AlertDefault{
alert(BuildContext context,String title,String textButtom,Widget subtitle,) {
double width = MediaQuery.of(context).size.width;
double height = MediaQuery.of(context).size.height;
return showDialog(
context: context,
builder: (context){
return AlertDialog(
title: TextCustom(
text: title,
color: Colors.black54,
textAlign: TextAlign.center,
fontWeight: FontWeight.bold,
),
content: subtitle,
actions: [
ButtonCustom(
onPressed: ()=>Navigator.pop(context),
text: textButtom,
widthCustom: 0.2,
heightCustom: 0.05,
size: 14,
colorText: Colors.white,
colorBorder: PaletteColors.grey,
colorButton: PaletteColors.grey,
)
],
actionsAlignment: MainAxisAlignment.center,
);
}
);
}
}