0
I’m having problems with this code, when I run the following error appears:
"Unimplemented Handling of Missing Static target".
What can it be? How can I solve this problem?
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: null,
          body: Container(
              child: Center(
            child: Radiobutton(),
          ))),
    );
  }
}
class Radiobutton extends StatefulWidget {
  @override
  RadioButtonWidget createState() => RadioButtonWidget();
}
class RadioButtonWidget extends State {
  String radioItem = '';
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        RadioListTile(
          groupValue: radioItem,
          title: Text('Radio Button Item 1'),
          value: 'Item 1',
          onChanged: (val) {
            setState(() {
              radioItem = val;
            });
          },
        ),
        RadioListTile(
          groupValue: radioItem,
          title: Text('Radio Button Item 2'),
          value: 'Item 2',
          onChanged: (val) {
            setState(() {
              radioItem = val;
            });
          },
        ),
      ],
    );
  }
}
Have you tried closing the app altogether and running it again? I’m not sure, but the error seems to be something related to this.
– Naslausky