摘要:
代码: 1. import 'package:flutter/cupertino.dart'; class Counter with ChangeNotifier{ int num = 1; increase(){ num ++ ; notifyListeners();//加入监听者模式 } } 2 阅读全文
posted @ 2020-01-29 18:12
pp/ing
阅读(500)
评论(0)
推荐(0)