buildPwd method

Widget buildPwd()

Implementation

Widget buildPwd() {
  return Container(
    height: 56,
    color: Colors.white,
    padding: EdgeInsets.only(left: 20, right: 16),
    child: Row(
      children: <Widget>[
        Expanded(
          flex: 1,
          child: Text(
            Strings.livePassword,
            style: TextStyle(color: UIColors.black_222222, fontSize: 16),
          ),
        ),
        MeetingCoreValueKey.addTextWidgetTest(
            valueKey: MeetingCoreValueKey.livePwdSwitch,
            value: livePwdSwitch),
        CupertinoSwitch(
            key: MeetingCoreValueKey.livePwdSwitch,
            value: livePwdSwitch,
            onChanged: (bool value) {
              setState(() {
                livePwdSwitch = value;
                if (livePwdSwitch &&
                    TextUtils.isEmpty(_livePasswordController.text)) {
                  generatePassword();
                  _livePasswordController.text = livePassword ?? '';
                }
              });
            },
            activeColor: UIColors.blue_337eff)
      ],
    ),
  );
}