📜  颤振有状态小部件 - Dart 代码示例

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

代码示例2
class YellowBird extends StatefulWidget {
  const YellowBird({ Key key }) : super(key: key);

  @override
  _YellowBirdState createState() => _YellowBirdState();
}

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