Files
MatchLiveTv/mobile/lib/providers/match_rules_provider.dart
Emiliano Frascaro bba6df52c0 Initial commit: monorepo Match Live TV.
Rails API, app Flutter, infrastruttura Docker/MediaMTX, sito marketing e documentazione di deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 17:45:37 +02:00

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);
});