Я пробую простую программу дротика флаттера.Я имею в виду этот учебник, как мне решить эту проблему?
Получение следующего исключения
I/flutter ( 4785): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 4785): The following NoSuchMethodError was thrown attaching to the render tree:
I/flutter ( 4785): The method '_debugTypesAreRight' was called on null.
I/flutter ( 4785): Receiver: null
I/flutter ( 4785): Tried calling: _debugTypesAreRight(Instance of 'RealWorldApp')
код:
import 'package:flutter/material.dart';
void main() => runApp(new RealWorldApp());
class RealWorldApp extends StatefulWidget {
@override
RealWorldState createState() => new RealWorldState();
}
class RealWorldState extends State<RealWorldApp>
{
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new Scaffold(
appBar: new AppBar(
title: new Text("First App"),
actions: <Widget>[
new IconButton(icon: new Icon(Icons.refresh),
)
],
),
body: new Center(
child: new CircularProgressIndicator(),
),
),
);
}
}