我正在使用这个库..但是我遇到了这个错误
Flushbar(
title: 'Warning',
message: "You have no Internet",
icon: Icon(
Icons.error_outline,
size: 28,
color: Colors.red,
),
leftBarIndicatorColor: Colors.blue.shade300,
duration: Duration(seconds: 3),
)..show(context);
答案 0 :(得分:1)
用相同的代码使用这个库解决我的问题
https://pub.dev/packages/another_flushbar
import 'package:another_flushbar/flushbar.dart';