feito o cadastro do cidadão

This commit is contained in:
Reginaldo
2023-04-13 22:54:17 -03:00
parent cdee8fcc44
commit 632cdbfeef
34 changed files with 2076 additions and 1108 deletions

View File

@@ -0,0 +1,33 @@
import 'package:flutter/material.dart';
import 'package:rkm/widgets/text_default.dart';
class ErrorDefault extends StatelessWidget {
double widthDefault;
String error;
ErrorDefault({
this.widthDefault = 0.7,
this.error = 'Esse campo é obrigatório!'
});
@override
Widget build(BuildContext context) {
double height = MediaQuery.of(context).size.height;
double width = MediaQuery.of(context).size.width;
return Container(
height: 20,
width: width*widthDefault,
child: Column(
children: [
Divider(color: Colors.red,height: 2,thickness:2),
Container(
height: 15,
width: width*widthDefault,
child: TextDefault(text:error,color: Colors.red,fontSize: 12),
),
],
),
);
}
}