del use global ctx,fix server alert

This commit is contained in:
csf
2022-02-25 21:54:05 +08:00
parent 18a9837dc9
commit eaff76370e
4 changed files with 73 additions and 38 deletions

View File

@@ -24,7 +24,6 @@ class _HomePageState extends State<HomePage> {
@override
void initState() {
super.initState();
currentCtx = context;
if (isAndroid) {
Timer(Duration(seconds: 5), () {
_updateUrl = FFI.getByName('software_update_url');