Create management portal in Flutter #39
This commit is contained in:
parent
9e2ad81cff
commit
3a72563a5c
@ -31,6 +31,10 @@ class _AddMountWidgetState extends State<AddMountWidget> {
|
|||||||
String dataName, {
|
String dataName, {
|
||||||
String? value,
|
String? value,
|
||||||
}) {
|
}) {
|
||||||
|
if (value != null) {
|
||||||
|
widget.onDataChanged(dataName, value);
|
||||||
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
const SizedBox(height: _padding),
|
const SizedBox(height: _padding),
|
||||||
Text(
|
Text(
|
||||||
@ -42,6 +46,7 @@ class _AddMountWidgetState extends State<AddMountWidget> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextField(
|
TextField(
|
||||||
|
autofocus: dataName == 'Name',
|
||||||
decoration: InputDecoration(),
|
decoration: InputDecoration(),
|
||||||
onChanged: (value) => widget.onDataChanged(dataName, value),
|
onChanged: (value) => widget.onDataChanged(dataName, value),
|
||||||
controller: TextEditingController(text: value),
|
controller: TextEditingController(text: value),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user