File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,15 @@ class GetxRxExamplePage extends GetView<GetxRxExampleController> {
103
103
style: Theme .of (context).textTheme.headlineMedium,
104
104
);
105
105
}),
106
+ /// 使用GetX<T>时,GetxRxExampleController必须继承GetxController
107
+ // GetX<GetxRxExampleController>(
108
+ // builder: (s) {
109
+ // return Text(
110
+ // s.count.value.toString(),
111
+ // style: Theme.of(context).textTheme.headlineMedium,
112
+ // );
113
+ // },
114
+ // ),
106
115
Text (message),
107
116
ElevatedButton (
108
117
onPressed: controller.pushToCoinRankPage,
@@ -132,6 +141,7 @@ class GetxRxExamplePage extends GetView<GetxRxExampleController> {
132
141
floatingActionButton: FloatingActionButton (
133
142
onPressed: (() {
134
143
controller.increment ();
144
+ /// 上一个页面的值也在进行添加
135
145
_easyController.increment ();
136
146
}),
137
147
tooltip: 'Increment' ,
You can’t perform that action at this time.
0 commit comments