This commit is contained in:
alex
2020-05-04 10:58:19 +01:00
parent 0f2ab52606
commit 94ee74840a
13 changed files with 291 additions and 81 deletions

View File

@@ -0,0 +1,18 @@
import 'package:flutter/material.dart';
class UxApp extends InheritedWidget {
final Widget child;
UxApp({this.child});
Widget build(BuildContext context) {
return Stack(
children: [Positioned.fill(child: child)],
);
}
bool updateShouldNotify(InheritedWidget oldWidget) => false;
UxApp of(BuildContext context) => context.dependOnInheritedWidgetOfExactType<UxApp>();
}