Add missing community default
This commit is contained in:
parent
d64fe48328
commit
23f64387a7
|
@ -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