Why build function gets called twice when hot restarting?

前端 未结 0 1243
走了就别回头了
走了就别回头了 2020-11-28 02:22

I noticed that the build function was called twice in a stateless widget.

import \'package:flutter/material.dart\';

void main() {
  runApp(new MyApp());
}

c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题