Add missing community default
This commit is contained in:
parent
9e7793f949
commit
766762078c
|
@ -17,8 +17,12 @@ class CreatePostCommunityPicker extends HookWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final controller = useTextEditingController();
|
|
||||||
final store = context.read<CreatePostStore>();
|
final store = context.read<CreatePostStore>();
|
||||||
|
final controller = useTextEditingController(
|
||||||
|
text: store.selectedCommunity != null
|
||||||
|
? _communityString(store.selectedCommunity!)
|
||||||
|
: '',
|
||||||
|
);
|
||||||
|
|
||||||
return AsyncStoreListener(
|
return AsyncStoreListener(
|
||||||
asyncStore: context.read<CreatePostStore>().searchCommunitiesState,
|
asyncStore: context.read<CreatePostStore>().searchCommunitiesState,
|
||||||
|
|
Loading…
Reference in New Issue