mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 09:54:19 +01:00
show pendding connect remote apps
This commit is contained in:
20
lib/component/reload_inherited_widget.dart
Normal file
20
lib/component/reload_inherited_widget.dart
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user