Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

194
Vistas
'Missing Focus scope.' Using input text

I try build a form using Flutter, I have my own StatefulWidget that return a Form with 2 Input (I try with TextField too) and a DropdownButton.

When I executed the second Input show this error: 'Missing Focus scope.'

The code:

import 'package:flutter/material.dart';

class ContactFormView extends StatefulWidget {

  @override
  CreateFormViewState createState() => new CreateFormViewState();

}

class CreateFormViewState extends State<ContactFormView> {

  GlobalKey<FormState> _formKey = new GlobalKey<FormState>();

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      body: new Form(
          key: _formKey,
          child: new Column(
              children: <Widget>[
                new Input(
                    labelText: 'First Name',
                    onChanged: (InputValue value) {
                      // Logic here
                    }
                ),
                new Input(
                    labelText: 'Last Name',
                    onChanged: (InputValue value) {
                      // Logic here
                    }
                ),
                new RaisedButton(
                    child: new Text('SUBMIT'),
                    onPressed: () {
                      // Logic here
                    },
                )
              ]
          )
      )
    );
  }

}
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Finally, the problem was fixed on next updates. Right now, you can use this widget without problems. https://docs.flutter.io/flutter/widgets/Form-class.html

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda