added controller scope and extension for context

This commit is contained in:
2026-06-12 12:22:46 +02:00
parent b5f6370fdf
commit 453e106cd5
2 changed files with 27 additions and 0 deletions
@@ -0,0 +1,9 @@
import 'package:flutter/material.dart';
import '../../service/controller_scope.dart';
extension ControllerContext on BuildContext {
T controller<T extends ChangeNotifier>() {
return ControllerScope.of<T>(this);
}
}