Created
June 15, 2020 19:06
-
-
Save ookami-kb/a3f42719351bba4e437a22f57471e243 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreateThreadScreen extends StatefulWidget {…} | |
class _CreateThreadScreenState extends State<CreateThreadScreen> { | |
@override | |
void afterInitState() { | |
super.afterInitState(); | |
bloc.title | |
.map((v) => _titleController.value.copyWith(text: v)) | |
.listen((v) => _titleController.value = v, onError: ignore) | |
.addTo(_subscriptions); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment