You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Imagine that you can do this :
12
12
Instead of this:
13
13
```dart
14
14
final size = MediaQuery.of(context).size;
15
-
final widget = StreamBuilder(
15
+
final __widget = StreamBuilder(
16
16
initialData: ctrl.textVisible.value,
17
17
stream: ctrl.textVisible,
18
18
builder: (BuildContext context, snapshot) {
@@ -36,7 +36,7 @@ Instead of this:
36
36
}
37
37
}
38
38
);
39
-
return widget;
39
+
return __widget;
40
40
```
41
41
Which is about 20 lines of code, and if you just updated the `:text` property to use a stream variable `:text="ctrl.myTextStream | stream"` that will add another 4 lines of code for the StreamBuilder.
0 commit comments