close choreo error button on press
This commit is contained in:
parent
ee167f01e4
commit
6791e410bd
2 changed files with 6 additions and 5 deletions
|
|
@ -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…
Add table
Reference in a new issue