feat: disable send button if fetching IGC (#1427)

pull/1593/head
ggurdin 10 months ago committed by GitHub
parent f672996fb1
commit a37266fc3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -41,27 +41,19 @@ class ChoreographerSendButtonState extends State<ChoreographerSendButton> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return return Container(
// widget.controller.choreographer.isFetching &&
// widget.controller.choreographer.isAutoIGCEnabled
// ? Container(
// height: 56,
// width: 56,
// padding: const EdgeInsets.all(13),
// child: const CircularProgressIndicator(),
// )
// :
Container(
height: 56, height: 56,
alignment: Alignment.center, alignment: Alignment.center,
child: IconButton( child: IconButton(
icon: const Icon(Icons.send_outlined), icon: const Icon(Icons.send_outlined),
color: color:
widget.controller.choreographer.assistanceState.stateColor(context), widget.controller.choreographer.assistanceState.stateColor(context),
onPressed: () { onPressed: widget.controller.choreographer.isFetching
widget.controller.choreographer.incrementTimesClicked(); ? null
widget.controller.choreographer.send(context); : () {
}, widget.controller.choreographer.incrementTimesClicked();
widget.controller.choreographer.send(context);
},
tooltip: L10n.of(context).send, tooltip: L10n.of(context).send,
), ),
); );

Loading…
Cancel
Save