Log:
Compiler message: lib/page.dart:92:11: Error: 'showDialog' is imported from both 'package:flutter/src/material/dialog.dart' and 'package:loading/loading.dart'. showDialog<void>( ^^^^^^^^^^
重复导入,导致变异失败。
两种解决方案:
1.使用hide,把其中一个improt 使用hide隐藏掉冲突名字
import 'package:loading/loading.dart' hide showDialog;
2.使用as,重命名
import 'package:loading/loading.dart' as showMyDialog;