📜  Android Studio 如何将无状态小部件重构为有状态小部件 - 无论代码示例

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

代码示例2
class Counter extends StatelessWidget {
//   @override
//   _CounterState createState() => _CounterState();
// }

// class _CounterState extends State {
  @override
  Widget build(BuildContext context) {
    return Container(
      
    );
  }
}