From 2492e4f43a48afbaabc63206ad146f6a687606bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C9=AAx=E1=B4=9Cs?= Date: Wed, 10 Jan 2024 21:07:03 +0800 Subject: [PATCH] Update state_manage.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TapboxB构造方法的默认值设置错误 --- src/chapter2/state_manage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chapter2/state_manage.md b/src/chapter2/state_manage.md index 33775a6c..554309c2 100644 --- a/src/chapter2/state_manage.md +++ b/src/chapter2/state_manage.md @@ -128,7 +128,7 @@ class _ParentWidgetState extends State { //------------------------- TapboxB ---------------------------------- class TapboxB extends StatelessWidget { - TapboxB({Key? key, this.active: false, required this.onChanged}) + TapboxB({Key? key, this.active = false, required this.onChanged}) : super(key: key); final bool active;