fix cancel button
This commit is contained in:
@@ -107,10 +107,11 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
|||||||
|
|
||||||
return Text(
|
return Text(
|
||||||
_getChannelName(
|
_getChannelName(
|
||||||
2 * MediaQuery.of(context).size.width / 3,
|
2 * MediaQuery.of(context).size.width / 3,
|
||||||
members: snapshot.data,
|
members: snapshot.data,
|
||||||
extraData: state.data.channel.extraData,
|
extraData: state.data.channel.extraData,
|
||||||
maxFontSize: 16.0),
|
maxFontSize: 16.0,
|
||||||
|
),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: StreamChatTheme.of(context).colorTheme.black,
|
color: StreamChatTheme.of(context).colorTheme.black,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@@ -376,8 +377,12 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
|||||||
child: StreamSvgIcon.closeSmall(),
|
child: StreamSvgIcon.closeSmall(),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
_nameController.text =
|
_nameController.text = _getChannelName(
|
||||||
_getChannelName(MediaQuery.of(context).size.width);
|
2 * MediaQuery.of(context).size.width / 3,
|
||||||
|
members: channel.state.members,
|
||||||
|
extraData: channel.extraData,
|
||||||
|
maxFontSize: 16.0,
|
||||||
|
);
|
||||||
_focusNode.unfocus();
|
_focusNode.unfocus();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -996,8 +1001,12 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
String _getChannelName(double width,
|
String _getChannelName(
|
||||||
{List<Member> members, Map extraData, double maxFontSize}) {
|
double width, {
|
||||||
|
List<Member> members,
|
||||||
|
Map extraData,
|
||||||
|
double maxFontSize,
|
||||||
|
}) {
|
||||||
String title;
|
String title;
|
||||||
var client = StreamChat.of(context);
|
var client = StreamChat.of(context);
|
||||||
if (extraData['name'] == null) {
|
if (extraData['name'] == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user