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

193
Views
'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 answers
Answer question

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 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!