Flutter 还没初始化前就被调用的错误

import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';

void main() {
  //
  WidgetsFlutterBinding.ensureInitialized();

  runApp(MyApp());
}

你可能感兴趣的:(Flutter 还没初始化前就被调用的错误)