Rails API, app Flutter, infrastruttura Docker/MediaMTX, sito marketing e documentazione di deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
390 B
Dart
13 lines
390 B
Dart
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
import '../shared/scoring/match_scoring_rules.dart';
|
|
import 'session_provider.dart';
|
|
|
|
final matchScoringRulesProvider = Provider<MatchScoringRules>((ref) {
|
|
final match = ref.watch(sessionProvider).match;
|
|
if (match == null) {
|
|
return const MatchScoringRules(setsToWin: 3);
|
|
}
|
|
return MatchScoringRules.fromMatch(match);
|
|
});
|