add carton editor for mix carton
This commit is contained in:
@@ -16,6 +16,9 @@ class InputText extends StatelessWidget {
|
||||
final bool autoFocus;
|
||||
final TextAlign textAlign;
|
||||
final bool enabled;
|
||||
final BoxConstraints? constraints;
|
||||
final EdgeInsetsGeometry? contentPadding;
|
||||
final bool? isDense;
|
||||
|
||||
const InputText(
|
||||
{Key? key,
|
||||
@@ -29,7 +32,10 @@ class InputText extends StatelessWidget {
|
||||
this.autoFocus = false,
|
||||
this.textInputType,
|
||||
this.enabled = true,
|
||||
this.textAlign = TextAlign.start})
|
||||
this.textAlign = TextAlign.start,
|
||||
this.constraints,
|
||||
this.contentPadding,
|
||||
this.isDense})
|
||||
: super(key: key);
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -47,6 +53,9 @@ class InputText extends StatelessWidget {
|
||||
keyboardType: textInputType,
|
||||
textAlign: textAlign,
|
||||
decoration: new InputDecoration(
|
||||
isDense: isDense,
|
||||
constraints: constraints,
|
||||
contentPadding: contentPadding,
|
||||
// hintText: '',
|
||||
hintStyle: TextStyle(
|
||||
height: 1.5,
|
||||
@@ -65,16 +74,28 @@ class InputText extends StatelessWidget {
|
||||
),
|
||||
enabledBorder: withBorder
|
||||
? OutlineInputBorder(
|
||||
borderSide: BorderSide(color: primaryColor, width: 1.0),
|
||||
borderSide: BorderSide(
|
||||
color: borderColor ?? primaryColor, width: 1.0),
|
||||
)
|
||||
: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: primaryColor, width: 1.0)),
|
||||
borderSide: BorderSide(
|
||||
color: borderColor ?? primaryColor, width: 1.0)),
|
||||
focusedBorder: withBorder
|
||||
? OutlineInputBorder(
|
||||
borderSide: BorderSide(color: primaryColor, width: 1.0),
|
||||
borderSide: BorderSide(
|
||||
color: borderColor ?? primaryColor, width: 1.0),
|
||||
)
|
||||
: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: primaryColor, width: 1.0)),
|
||||
borderSide: BorderSide(
|
||||
color: borderColor ?? primaryColor, width: 1.0)),
|
||||
disabledBorder: withBorder
|
||||
? OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: borderColor ?? primaryColor, width: 1.0),
|
||||
)
|
||||
: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: borderColor ?? primaryColor, width: 1.0)),
|
||||
),
|
||||
validator: validator),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user