Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
'Falta el alcance del foco.' Usar texto de entrada

Intento crear un formulario usando Flutter, tengo mi propio StatefulWidget que devuelve un formulario con 2 entradas (también intento con TextField) y un DropdownButton.

Cuando ejecuté la segunda entrada, mostré este error: 'Falta el alcance del enfoque'.

El código:

 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 answers
Answer question

0

Finalmente, el problema se solucionó en las próximas actualizaciones. Ahora mismo, puedes usar este widget sin problemas. https://docs.flutter.io/flutter/widgets/Form-class.html

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!