How stay login after close App in Flutter?

add WidgetsFlutterBinding.ensureInitialized() as a first-line in your main

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  // your code

if you want to understand why, checkout this link https://stackoverflow.com/a/63873689/12156637

note that Glutton uses channel methods too