onChangeNickName method

dynamic onChangeNickName()

Implementation

onChangeNickName() {
  String mid = "";
  showCupertinoDialog(
      context: context,
      builder: (context) {
        return CupertinoAlertDialog(
          title: Text(tL10n.setGroupName),
          content: CupertinoTextField(
            maxLines: null,
            onChanged: (value) {
              mid = value;
            },
          ),
          actions: <Widget>[
            CupertinoDialogAction(
              onPressed: () {
                _onChangeGrouopNameCard(mid);
                Navigator.pop(context);
              },
              child: Text(tL10n.confirm),
            ),
            CupertinoDialogAction(
              onPressed: () {
                Navigator.pop(context);
              },
              child: Text(tL10n.cancel),
            ),
          ],
        );
      });
}