buildUpdate method
Implementation
Widget buildUpdate() {
return Container(
margin: EdgeInsets.only(top: 35, bottom: 35, left: 20),
child: ElevatedButton(
key: MeetingCoreValueKey.liveUpdateBtn,
style: ButtonStyle(
backgroundColor: MaterialStateProperty.resolveWith<Color>((states) {
if (states.contains(MaterialState.disabled)) {
return UIColors.blue_50_337eff;
}
return UIColors.blue_337eff;
}),
padding:
MaterialStateProperty.all(EdgeInsets.symmetric(vertical: 13)),
shape: MaterialStateProperty.all(RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(25))))),
onPressed: isUpdate()
? () {
updateLiveParams(NERoomLiveState.started, checkParams: true);
}
: null,
child: Text(
Strings.liveUpdate,
style: TextStyle(
color: Colors.white, fontSize: 16, fontWeight: FontWeight.w400),
textAlign: TextAlign.center,
),
),
);
}