ajustes nos dados do contatos
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm_educa_app/utils/cores.dart';
|
||||
import 'package:rkm_educa_app/componentes/buttom_custom.dart';
|
||||
import 'package:rkm_educa_app/componentes/text_custom.dart';
|
||||
import 'package:rkm_educa_app/utils/dimensoes.dart';
|
||||
|
||||
class AlertDefault{
|
||||
alert(BuildContext context,String title,String textButtom,Widget subtitle,double altura) {
|
||||
alert(BuildContext context,double altura,Widget subtitle) {
|
||||
|
||||
return showGeneralDialog(
|
||||
context: context,
|
||||
@@ -14,27 +11,18 @@ class AlertDefault{
|
||||
barrierColor: Colors.black45,
|
||||
transitionDuration: const Duration(milliseconds: 200),
|
||||
pageBuilder: (BuildContext buildContext,Animation animation,Animation secondaryAnimation) {
|
||||
return Container(
|
||||
width: Dimensoes.width,
|
||||
height: Dimensoes.height,
|
||||
padding: EdgeInsets.all(20),
|
||||
color: Colors.white,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
subtitle,
|
||||
ButtonCustom(
|
||||
onPressed: ()=>Navigator.pop(context),
|
||||
text: textButtom,
|
||||
widthCustom: 0.2,
|
||||
heightCustom: 0.05,
|
||||
size: 14,
|
||||
colorText: Colors.white,
|
||||
colorBorder: PaletaCores.cinza,
|
||||
colorButton: PaletaCores.cinza,
|
||||
)
|
||||
],
|
||||
return Center(
|
||||
child: Card(
|
||||
elevation: 5,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(15.0),
|
||||
),
|
||||
child: Container(
|
||||
width: Dimensoes.width,
|
||||
height: Dimensoes.height*altura,
|
||||
padding: EdgeInsets.all(20),
|
||||
child: subtitle,
|
||||
),
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user