toast的使用
- 添加依赖–>
fluttertoast: ^2.1.1
- 引入依赖–>
import 'package:fluttertoast/fluttertoast.dart';
- 常见错误
-
ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method showToast on channel PonnamKarthik/fluttertoast
–>重启AS