Intellij idea 颤振onTextScaleFactorChanged错误?

Intellij idea 颤振onTextScaleFactorChanged错误?,intellij-idea,text,window,flutter,Intellij Idea,Text,Window,Flutter,我最近更新了Flitter和我的软件包,现在我得到了以前没有的错误。我重新启动了IntelliJ,我正在接受医生的所有检查 NoSuchMethodError:类“Window”没有实例设置程序“onTextScaleFactorChanged=”。 接收方:“窗口”的实例 尝试从函数“handleTextScaleFactorChanged”调用:onTextScaleFactorChanged=Closure:()=>void:。 *添加了文本对齐代码* class NumberOnesPa

我最近更新了Flitter和我的软件包,现在我得到了以前没有的错误。我重新启动了IntelliJ,我正在接受医生的所有检查

NoSuchMethodError:类“Window”没有实例设置程序“onTextScaleFactorChanged=”。
接收方:“窗口”的实例
尝试从函数“handleTextScaleFactorChanged”调用:onTextScaleFactorChanged=Closure:()=>void:。

*添加了文本对齐代码*

class NumberOnesPageState extends State<NumberOnesPage> {List names = new List();
    List numbers = new List();
    List ids = new List();
    List vidImages = new List();


    void _handleJson(value) {


      Map myMap = value; //store each map
      var titles = myMap.values;
      for (var items in titles){
        names.add(items['vidTitle']);
        numbers.add(items['Value']);
        ids.add(items['vidId']);
        vidImages.add(items['vidImage']);

      }

    }
      final fb = FirebaseDatabase.instance.reference();



      @override
      Widget build(BuildContext context) {
        return new Scaffold(
            appBar: new AppBar(
              backgroundColor: Colors.amber,
              title: new Text('Number Ones',
              style: new TextStyle(
                fontWeight: FontWeight.bold,
                color: Colors.black
              ),),
            ),
            body: new Container(
              child: new Center(
                  child: new Column(
                children: <Widget>[
                  new Flexible(
                      child: new FirebaseAnimatedList(
                          query: fb.child('NumberOnes').orderByChild('Value'),
                          padding: new EdgeInsets.all(15.0),
                          //sort: (a, b) => b.key.compareTo(a.key),
                          reverse: false,
                          itemBuilder: (_, DataSnapshot followerSnap,
                              Animation<double> animation, int Index) {
                            return new StreamBuilder<Event>(
                                stream: fb
                                    .child('NumberOnes')
                                    .orderByChild('Value')
                                    .onValue,
                                builder: (BuildContext context,
                                    AsyncSnapshot<Event> event) {
                                  switch (event.connectionState) {
                                    case ConnectionState.none:
                                      return new Card(
                                        child: new Text('Loading...',
                                            style: new TextStyle(
                                                fontSize: 12.0,
                                                fontWeight: FontWeight.bold,
                                                fontStyle: FontStyle.italic)),
                                      );
                                    case ConnectionState.waiting:
                                      return new Card(
                                        child: new Text('Awaiting Results...',
                                            style: new TextStyle(
                                                fontSize: 12.0,
                                                fontWeight: FontWeight.bold,
                                                fontStyle: FontStyle.italic)),
                                      );
                                    default:
                                      if (event.hasError)
                                        return new Card(
                                          child: new Text('Error: ${event.error}',
                                              style: new TextStyle(
                                                  fontSize: 12.0,
                                                  fontWeight: FontWeight.bold,
                                                  fontStyle: FontStyle.italic)),
                                        );
                                      else
                                        _handleJson(event.data.snapshot.value);
                                      return new InkWell(
                                        splashColor: Colors.blueAccent,
                                        onTap: (){
                                          Navigator.push(context,
                                              new MaterialPageRoute(builder: (_) => new Video.VideoPage()));
                                          Video.id = ids[Index];
                                          Video.title = names[Index];
                                          Video.videoImage = vidImages[Index];

                                          },
                                        child: new Card(
                                          child: new Column(
                                            children: <Widget>[
                                              new Padding(padding: new EdgeInsets.all(5.0)),
                                              new Image.network(vidImages[Index]),
                                              new Padding(padding: new EdgeInsets.all(3.0)),
                                              new Text('${numbers[Index]} MyFavKPopers Have Made This Their #1'),
                                              new Padding(padding: new EdgeInsets.all(3.0)),
                                              new Text(names[Index],
                                              style: new TextStyle(
                                                  fontSize: 18.0,
                                                  fontWeight: FontWeight.bold,
                                                  color: Colors.black),
                                              //textAlign: TextAlign.center,
                                              ),
                                              new Padding(padding: new EdgeInsets.all(5.0)),
                                            ],
                                          ),
                                        ),
                                      );
                                  }
                                });
                          }))
                ],
              )),
            ));
      }
    }
class NumberNoneSpageState扩展状态{List names=new List();
列表编号=新列表();
列表ID=新列表();
List vidImages=新列表();
void\u handleJson(值){
Map myMap=value;//存储每个映射
var titles=myMap.values;
用于(标题中的var项目){
名称。添加(项目['vidTitle']);
添加(项目['Value']);
添加(项目['vidId']);
添加(项['vidImage']);
}
}
final fb=FirebaseDatabase.instance.reference();
@凌驾
小部件构建(构建上下文){
归还新脚手架(
appBar:新的appBar(
背景颜色:Colors.amber,
标题:新文本(‘第一’,
样式:新文本样式(
fontWeight:fontWeight.bold,
颜色:颜色。黑色
),),
),
主体:新容器(
孩子:新中心(
子:新列(
儿童:[
新柔性(
子级:新的FirebaseAnimatedList(
查询:fb.child('NumberOnes').orderByChild('Value'),
填充:新的边缘设置。全部(15.0),
//排序:(a,b)=>b.key.compareTo(a.key),
反面:错,
itemBuilder:(u,DataSnapshot followerSnap,
动画(整数索引){
返回新的StreamBuilder(
流:fb
.child('numberone')
.orderByChild('值')
.onValue,
生成器:(BuildContext上下文,
异步(快照事件){
开关(事件连接状态){
案例连接状态。无:
归还新卡(
子项:新文本('正在加载…',
样式:新文本样式(
字体大小:12.0,
fontWeight:fontWeight.bold,
fontStyle:fontStyle.italic),
);
案例连接状态。正在等待:
归还新卡(
子项:新文本('等待结果…',
样式:新文本样式(
字体大小:12.0,
fontWeight:fontWeight.bold,
fontStyle:fontStyle.italic),
);
违约:
if(event.hasError)
归还新卡(
子项:新文本('Error:${event.Error}',
样式:新文本样式(
字体大小:12.0,
fontWeight:fontWeight.bold,
fontStyle:fontStyle.italic),
);
其他的
_handleJson(event.data.snapshot.value);
返回新墨水池(
splashColor:Colors.blueAccent,
onTap:(){
Navigator.push(上下文,
新的MaterialPageRoute(生成器:()=>new Video.VideoPage());
Video.id=ids[Index];
Video.title=名称[索引];
Video.videoImage=vidImages[索引];
},
孩子:新卡(
子:新列(
儿童:[
新填充(填充:新边集。全部(5.0)),
新图像网络(vidImages[索引]),
新填充(填充:新边集。全部(3.0)),
新文本(“${numbers[Index]}MyFavkOppers已将其作为#1”),
新填充(填充:新边集。全部(3.0)),
新文本(名称[索引],
样式:新文本样式(
字体大小:18.0,
fontWeight:fontWeight.bold,
颜色:颜色。黑色),
//textAlign:textAlign.center,
),
新PAD