close choreo error button on press

pull/1476/head
ggurdin 1 year ago
parent ee167f01e4
commit 6791e410bd
No known key found for this signature in database
GPG Key ID: A01CB41737CBB478

@ -1,15 +1,15 @@
import 'package:fluffychat/pangea/choreographer/controllers/choreographer.dart';
import 'package:flutter/material.dart';
import '../../controllers/pangea_controller.dart';
import '../controllers/error_service.dart';
class ChoreographerHasErrorButton extends StatelessWidget {
final ChoreoError error;
final PangeaController pangeaController;
final Choreographer choreographer;
const ChoreographerHasErrorButton(
this.pangeaController,
this.error, {
this.error,
this.choreographer, {
super.key,
});
@ -26,6 +26,7 @@ class ChoreographerHasErrorButton extends StatelessWidget {
),
),
);
choreographer.errorService.resetError();
}
},
mini: true,

@ -76,8 +76,8 @@ class ChatFloatingActionButtonState extends State<ChatFloatingActionButton> {
}
if (widget.controller.choreographer.errorService.error != null) {
return ChoreographerHasErrorButton(
widget.controller.pangeaController,
widget.controller.choreographer.errorService.error!,
widget.controller.choreographer,
);
}

Loading…
Cancel
Save