Fix deprecation

This commit is contained in:
Elias Projahn 2019-12-15 12:29:00 +01:00
parent 25e4267cb8
commit b6eabdbba3

View file

@ -5,7 +5,7 @@ import 'database.dart';
class Backend extends InheritedWidget { class Backend extends InheritedWidget {
static Backend of(BuildContext context) => static Backend of(BuildContext context) =>
context.inheritFromWidgetOfExactType(Backend); context.dependOnInheritedWidgetOfExactType<Backend>();
final Widget child; final Widget child;