fix context

master
小赖 4 years ago
parent f59d67ff2c
commit ef1db90821

@ -35,9 +35,9 @@ class PowerLogger {
bool debug = true,
Alignment initAlignment = Alignment.center,
}) {
globalContext = context;
WidgetsBinding.instance!.addPostFrameCallback((_) {
PowerLogger.debug = debug;
globalContext = context;
if (debug) _insertToOverlay(initAlignment: initAlignment);
});
}

Loading…
Cancel
Save