show pendding connect remote apps

This commit is contained in:
DASHU
2024-09-10 19:47:28 +08:00
parent 5414f9ffa6
commit f34d10093b
11 changed files with 241 additions and 39 deletions

View File

@@ -0,0 +1,20 @@
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class ReloadInheritedWidget extends InheritedWidget {
Function reload;
ReloadInheritedWidget({
required super.child,
required this.reload,
});
static ReloadInheritedWidget? of(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<ReloadInheritedWidget>();
}
@override
bool updateShouldNotify(covariant InheritedWidget oldWidget) {
return false;
}
}