buildViewItem method

Widget buildViewItem()

Implementation

Widget buildViewItem() {
  return GestureDetector(
      key: MeetingCoreValueKey.liveLayoutSetting,
      behavior: HitTestBehavior.opaque,
      onTap: () {
        FocusScope.of(context).unfocus();
        Navigator.of(context).push(MaterialPageRoute(builder: (context) {
          return MeetingLiveSettingPage(
              _arguments,
              NERoomLiveInfo(
                  title: _liveTitleController.text,
                  liveLayout: liveLayout,
                  userUuidList: liveUids));
        })).then((value) {
          if (value is NERoomLiveInfo) {
            viewChange = !listEquals(value.userUuidList, liveUids) ||
                (liveLayout != value.liveLayout &&
                    value.liveLayout != NERoomLiveLayout.screenShare);
            liveUids.clear();
            if (value.userUuidList != null)
              liveUids.addAll(value.userUuidList!);
            if (value.liveLayout != NERoomLiveLayout.screenShare) {
              liveLayout = value.liveLayout;
            }
            if (viewChange) {
              setState(() {});
            }
          }
        });
      },
      child: Container(
        height: 56,
        color: Colors.white,
        padding: EdgeInsets.symmetric(horizontal: 20),
        child: Row(
          children: <Widget>[
            Text(Strings.liveViewSetting,
                style: TextStyle(fontSize: 16, color: UIColors.black_222222)),
            Spacer(),
            viewTips(),
            SizedBox(
              width: 8,
            ),
            Icon(NEMeetingIconFont.icon_yx_allowx,
                size: 14, color: UIColors.greyCCCCCC)
          ],
        ),
      ));
}