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

@@ -40,7 +40,7 @@ class InputSearchText extends StatelessWidget {
fillColor: ColorPalette.appBar,
prefixIcon: Icon(Icons.search),
border: border?OutlineInputBorder():null,
hintText: this.hint,
// hintText: this.hint,
hintStyle: TextStyle(
color: Colors.black,
fontSize: this.fontSizeHint,

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,

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:rkm/widgets/title_input.dart';
import '../config/color_palette.dart';
import 'error_default.dart';
import 'input_text.dart';
@@ -53,11 +54,11 @@ class InputWithSubtitle extends StatelessWidget {
// fontWeigth: FontWeight.bold,
// ),
// ),
TitleInput(title:labelInput),
InputText(
controller: controller,
width: widthInput,
hint: hintInput,
label: labelInput,
title: hintInput,
enabled: enabled,
textInputType: textInputType,
maxLines:maxLines,

View File

@@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
import 'package:rkm/config/color_palette.dart';
import 'package:rkm/config/const_variable.dart';
import 'package:rkm/widgets/text_default.dart';
class TitleInput extends StatelessWidget {
String title;
TitleInput({
required this.title,
});
@override
Widget build(BuildContext context) {
return TextDefault(text: title,color: Colors.black,fontSize: 13,textAlign: TextAlign.start);
}
}