小编Ank*_*gar的帖子

W/Choreographer(11277):未来帧时间为13.988632毫秒!检查图形 HAL 是否使用正确的时基生成 vsync 时间戳

W/Choreographer(11277): Frame time is 13.988632 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
Run Code Online (Sandbox Code Playgroud)

这是运行时产生的错误。Flutter 未更新setState内容并出现此错误,代码如下

    import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'dart:math';

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.redAccent,
        appBar: AppBar(
          backgroundColor: Colors.red,
          title: Center(child: Text('Dicee')),
        ),
        body: MyApp(),
      ),
    ),
  );
}

class MyApp extends StatefulWidget {
  @override
  MyAppState createState() => MyAppState();
}

class MyAppState extends State<MyApp> {
  int leftDiceNumber = 1;
  @override
  Widget build(BuildContext context) {
    leftDiceNumber …
Run Code Online (Sandbox Code Playgroud)

dart flutter

5
推荐指数
1
解决办法
2682
查看次数

标签 统计

dart ×1

flutter ×1