Skip to content

Instantly share code, notes, and snippets.

@ookami-kb
Created June 15, 2020 19:06
Show Gist options
  • Save ookami-kb/a3f42719351bba4e437a22f57471e243 to your computer and use it in GitHub Desktop.
Save ookami-kb/a3f42719351bba4e437a22f57471e243 to your computer and use it in GitHub Desktop.
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