Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sama_chat_client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ doc/api/
.flutter-plugins
.flutter-plugins-dependencies

*.iml
.idea/

.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Future<void> _infoAction(BuildContext context) async {
context,
MaterialPageRoute(
settings: const RouteSettings(name: groupInfoPath),
builder: (context) => GroupInfoPage.route(state.conversation,
builder: (_) => GroupInfoPage.route(state.conversation,
onResult: (conversationUpdated) {
if (conversationUpdated && context.mounted) {
context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,16 @@ class GroupInfoCard extends StatelessWidget {
child: TextField(
keyboardType: TextInputType.text,
controller: groupNameTxt,
readOnly: !isOwner,
canRequestFocus: isOwner,
style: const TextStyle(fontSize: 18),
onSubmitted: (value) =>
ScaffoldMessenger.of(context)
.hideCurrentSnackBar(),
onSubmitted: (value) {
ScaffoldMessenger.of(context)
.hideCurrentSnackBar();
context
.read<GroupInfoBloc>()
.add(GroupInfoSubmitted());
},
onChanged: (groupname) => context
.read<GroupInfoBloc>()
.add(GroupNameChanged(groupname)),
Expand Down Expand Up @@ -162,10 +168,16 @@ class GroupInfoCard extends StatelessWidget {
child: TextField(
keyboardType: TextInputType.text,
controller: descriptionTxt,
readOnly: !isOwner,
canRequestFocus: isOwner,
style: const TextStyle(fontSize: 18),
onSubmitted: (value) =>
ScaffoldMessenger.of(context)
.hideCurrentSnackBar(),
onSubmitted: (value) {
ScaffoldMessenger.of(context)
.hideCurrentSnackBar();
context
.read<GroupInfoBloc>()
.add(GroupInfoSubmitted());
},
onChanged: (description) => context
.read<GroupInfoBloc>()
.add(GroupDescriptionChanged(
Expand Down
18 changes: 0 additions & 18 deletions sama_chat_client/sama_chat_client.iml

This file was deleted.