missing files
This commit is contained in:
@@ -54,6 +54,8 @@ class ShallowTextInputWidget extends StatefulWidget {
|
||||
}
|
||||
}
|
||||
class ShallowTextInputWidgetState extends State<ShallowTextInputWidget> {
|
||||
TextEditingController ctrl = TextEditingController();
|
||||
|
||||
bool validForms() {
|
||||
for (var form in widget.forms) {
|
||||
if (!form.validate()) {
|
||||
@@ -65,6 +67,7 @@ class ShallowTextInputWidgetState extends State<ShallowTextInputWidget> {
|
||||
|
||||
@override Widget build(BuildContext context) {
|
||||
var t = widget.type == CollaborativeAreaType.workspace ? "workspace" : (widget.type == CollaborativeAreaType.workflow ? "workflow" : "peer");
|
||||
ctrl.text = widget.current ?? "";
|
||||
return Row( mainAxisAlignment: widget.alignment, children: [
|
||||
Tooltip( message: widget.hint ?? "current $t", child:
|
||||
Theme(
|
||||
@@ -83,7 +86,7 @@ class ShallowTextInputWidgetState extends State<ShallowTextInputWidget> {
|
||||
}
|
||||
});
|
||||
},
|
||||
initialValue: widget.current,
|
||||
controller: ctrl,
|
||||
style: TextStyle(color: widget.color ?? Colors.black, fontSize: 15),
|
||||
decoration: InputDecoration(
|
||||
filled: true,
|
||||
|
||||
Reference in New Issue
Block a user