📌  相关文章
📜  创建有状态小部件 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:06.936000             🧑  作者: Mango

代码示例1
class MyApp extends StatefulWidget {
  @override
  State createState() {
    return _MyAppState();
  }
}

class _MyAppState extends State {
  @override
  Widget build(BuildContext context) {
    return Container(color: const Color(0xFFFFE306));
  }
}