ajustes no front e finalizado o salvamento dos dados no DB
This commit is contained in:
@@ -30,7 +30,7 @@ class DropDownButtonCity extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(ConstVariable().radiusBorderInput),
|
||||
border: Border.all(
|
||||
color: validator?ColorPalette.white:ColorPalette.red
|
||||
color: validator?ColorPalette.red:ColorPalette.white
|
||||
),
|
||||
color: ColorPalette.white
|
||||
),
|
||||
@@ -42,6 +42,7 @@ class DropDownButtonCity extends StatelessWidget {
|
||||
value: value.nameCityFront,
|
||||
child: TextDefault(
|
||||
text: value.nameCityFront,
|
||||
color: Colors.black54,
|
||||
),
|
||||
)
|
||||
).toList(),
|
||||
@@ -53,7 +54,7 @@ class DropDownButtonCity extends StatelessWidget {
|
||||
alignment: Alignment.centerLeft,
|
||||
padding: EdgeInsets.symmetric(horizontal: 15),
|
||||
child: TextDefault(
|
||||
text: validator?'':error,
|
||||
text: validator?error:'',
|
||||
color: ColorPalette.red,
|
||||
fontSize: 12
|
||||
)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/widgets/text_default.dart';
|
||||
import '../config/color_palette.dart';
|
||||
import 'dropdown_button_default.dart';
|
||||
|
||||
@@ -36,17 +37,15 @@ class DropdownWithSubtitle extends StatelessWidget {
|
||||
padding: const EdgeInsets.symmetric(vertical: 5.0),
|
||||
child: Column(
|
||||
children: [
|
||||
// Container(
|
||||
// width: widthSubtitle,
|
||||
// height: 40,
|
||||
// padding: const EdgeInsets.all(8.0),
|
||||
// child: TextDefault(
|
||||
// text: subtitle,
|
||||
// color: ColorPalette.black54,
|
||||
// fontSize: 18,
|
||||
// fontWeigth: FontWeight.bold,
|
||||
// ),
|
||||
// ),
|
||||
Container(
|
||||
width: widthDropdown,
|
||||
child: TextDefault(
|
||||
textAlign: TextAlign.start,
|
||||
text: subtitle,
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
|
||||
@@ -5,6 +5,7 @@ import '../config/const_variable.dart';
|
||||
class InputSearchText extends StatelessWidget {
|
||||
var controller;
|
||||
double fontSize;
|
||||
double fontSizeHint;
|
||||
String hint;
|
||||
double width;
|
||||
Color color;
|
||||
@@ -15,6 +16,7 @@ class InputSearchText extends StatelessWidget {
|
||||
required this.controller,
|
||||
required this.width,
|
||||
this.fontSize = 15.0,
|
||||
this.fontSizeHint = 15.0,
|
||||
this.hint = '',
|
||||
this.color = ColorPalette.white,
|
||||
this.border = true,
|
||||
@@ -41,7 +43,7 @@ class InputSearchText extends StatelessWidget {
|
||||
hintText: this.hint,
|
||||
hintStyle: TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: this.fontSize,
|
||||
fontSize: this.fontSizeHint,
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user