cmdrootaccess / another-flushbar

A flexible widget for user notification. Customize your text, button, duration, animations and much more. For Android devs, it is made to replace Snackbars and Toasts.
https://pub.dev/packages/another_flushbar
MIT License
145 stars 90 forks source link

[WEB] Undefined name 'AnotherFlushbarPlugin' in generated_plugin_registrant.dart #6

Closed Ciock closed 3 years ago

Ciock commented 3 years ago

This bug is relative to 1.10.9 and beyond. Downgrading to 1.10.8 resolve this issue.

Error: lib/generated_plugin_registrant.dart:21:3: Error: Getter not found: 'AnotherFlushbarPlugin'. AnotherFlushbarPlugin.registerWith(registrar); ^^^^^^^^^^^^^^^^^^^^^

//
// Generated file. Do not edit.
//

import 'package:another_flushbar/flushbar.dart';
import 'package:contact_picker_web/contact_picker_web.dart';
import 'package:firebase_analytics_web/firebase_analytics_web.dart';
import 'package:firebase_auth_web/firebase_auth_web.dart';
import 'package:firebase_core_web/firebase_core_web.dart';
import 'package:flutter_device_locale/src/web.dart';
import 'package:google_sign_in_web/google_sign_in_web.dart';
import 'package:location_web/location_web.dart';
import 'package:package_info_plus_web/package_info_plus_web.dart';
import 'package:shared_preferences_web/shared_preferences_web.dart';
import 'package:url_launcher_web/url_launcher_web.dart';

import 'package:flutter_web_plugins/flutter_web_plugins.dart';

// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
  AnotherFlushbarPlugin.registerWith(registrar);
  FlutterContactPickerPlugin.registerWith(registrar);
  FirebaseAnalyticsWeb.registerWith(registrar);
  FirebaseAuthWeb.registerWith(registrar);
  FirebaseCoreWeb.registerWith(registrar);
  FlutterDeviceLocaleWebPlugin.registerWith(registrar);
  GoogleSignInPlugin.registerWith(registrar);
  LocationWebPlugin.registerWith(registrar);
  PackageInfoPlugin.registerWith(registrar);
  SharedPreferencesPlugin.registerWith(registrar);
  UrlLauncherPlugin.registerWith(registrar);
  registrar.registerMessageHandler();
}
cmdrootaccess commented 3 years ago

thanks for bringing this up. i will resolve now

cmdrootaccess commented 3 years ago

fixed in version 1.10.11

nohli commented 3 years ago

@cmdrootaccess this came back in 1.10.12