remove matchStateUpdate bcs alr implement in another pr
This commit is contained in:
@@ -205,7 +205,6 @@ class _MatchDetailViewState extends State<MatchDetailView> {
|
|||||||
match: match,
|
match: match,
|
||||||
onWinnerChanged: () {
|
onWinnerChanged: () {
|
||||||
widget.onMatchUpdate.call();
|
widget.onMatchUpdate.call();
|
||||||
updateMatchStateAfterSave();
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -230,17 +229,6 @@ class _MatchDetailViewState extends State<MatchDetailView> {
|
|||||||
widget.onMatchUpdate.call();
|
widget.onMatchUpdate.call();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Updates the match scores after saving in MatchResultView
|
|
||||||
Future<void> updateMatchStateAfterSave() async {
|
|
||||||
final scores = await db.scoreEntryDao.getAllMatchScores(matchId: match.id);
|
|
||||||
|
|
||||||
if (!mounted) return;
|
|
||||||
|
|
||||||
setState(() {
|
|
||||||
match.scores = scores;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns the widget to be displayed in the result [InfoTile]
|
/// Returns the widget to be displayed in the result [InfoTile]
|
||||||
Widget getResultWidget(AppLocalizations loc) {
|
Widget getResultWidget(AppLocalizations loc) {
|
||||||
if (isSingleRowResult()) {
|
if (isSingleRowResult()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user