mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 16:41:19 +00:00
14 lines
406 B
Dart
14 lines
406 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ScoreWidget extends InheritedWidget {
|
|
ScoreWidget({Key? key, required Widget child}) : super(key: key, child: child);
|
|
|
|
int allInPlaceCount = 0;
|
|
|
|
static ScoreWidget of(BuildContext context) {
|
|
return context.dependOnInheritedWidgetOfExactType<ScoreWidget>() as ScoreWidget;
|
|
}
|
|
|
|
@override
|
|
bool updateShouldNotify(ScoreWidget oldWidget) => false;
|
|
} |