inserido icone android, logo,ajustada a tela home e login

This commit is contained in:
Reginaldo
2023-03-22 14:56:39 -03:00
parent 25a5cb6f15
commit 954e5aa2bf
21 changed files with 390 additions and 86 deletions

View File

@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:rkm/utils/color_palette.dart';
import '../utils/const_variable.dart';
class InputText extends StatelessWidget {
bool obscure;
@@ -7,36 +8,45 @@ class InputText extends StatelessWidget {
double fontSize;
String hint;
double width;
String label;
String error;
InputText({
required this.controller,
required this.width,
this.obscure = false,
this.fontSize = 20.0,
this.fontSize = 15.0,
this.hint = '',
this.label = '',
this.error = '',
});
@override
Widget build(BuildContext context) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 10),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15),
color: ColorPalette.border
),
color: ColorPalette.white,
margin: ConstVariable().marginHightInput,
width: width,
child: TextFormField(
validator: (value) {
if (value!=null && value!.length==0) {
return error;
}
return null;
},
obscureText: this.obscure,
controller: this.controller,
style: TextStyle(
color: ColorPalette.white,
color: ColorPalette.gray,
fontSize: this.fontSize,
),
decoration: InputDecoration(
border: InputBorder.none,
fillColor: ColorPalette.appBar,
labelText: label,
border: OutlineInputBorder(),
hintText: this.hint,
hintStyle: TextStyle(
color: ColorPalette.white,
color: ColorPalette.gray,
fontSize: this.fontSize,
)
)