inserido o progress indicator

This commit is contained in:
Reginaldo
2023-05-16 16:45:00 -03:00
parent 6e6a87ec64
commit a897a00b39
43 changed files with 478 additions and 329 deletions

View File

@@ -1,15 +1,15 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:rkm/config/color_palette.dart';
import 'package:rkm/widgets/text_default.dart';
import '../controllers/format_txt.dart';
class InputText extends StatelessWidget {
bool obscure;
var controller;
double fontSize;
String hint;
String title;
double width;
String label;
bool enabled;
TextInputType textInputType;
int maxLines;
@@ -21,8 +21,7 @@ class InputText extends StatelessWidget {
required this.width,
this.obscure = false,
this.fontSize = 15.0,
this.hint = '',
this.label = '',
this.title = '',
this.enabled = true,
this.textInputType = TextInputType.text,
this.maxLines = 1,
@@ -34,8 +33,8 @@ class InputText extends StatelessWidget {
Widget build(BuildContext context) {
return Container(
color: enabled?ColorPalette.white:ColorPalette.disable,
margin: EdgeInsets.only(top: 5),
width: width,
margin: EdgeInsets.only(bottom: 5),
child: TextFormField(
keyboardType: textInputType,
maxLines: maxLines,
@@ -51,7 +50,7 @@ class InputText extends StatelessWidget {
),
decoration: InputDecoration(
fillColor: ColorPalette.appBar,
labelText: label,
// labelText: label,
border: OutlineInputBorder(
borderSide: BorderSide(width: 1,color: colorBorder)
),
@@ -67,7 +66,7 @@ class InputText extends StatelessWidget {
borderSide: BorderSide(width: 1, color: colorBorder),
borderRadius: BorderRadius.circular(3),
),
hintText: this.hint,
// hintText: this.hint,
enabled: enabled,
hintStyle: TextStyle(
color: Colors.black,