JulianAssmann / flutter_background

A flutter plugin to keep apps running in the background via foreground services. Android only.
https://pub.dev/packages/flutter_background
MIT License
86 stars 46 forks source link

typo: Undefined name 'androidconfig' from `README.md` #27

Closed nilsreichardt closed 3 years ago

nilsreichardt commented 3 years ago

In the README.md there is this code block

final androidConfig = FlutterBackgroundAndroidConfig(
  notificationTitle: "Title of the notification",
  notificationText: "Text of the notification",
  notificationImportance: AndroidNotificationImportance.Default,
  notificationIcon: AndroidResource(
      name: 'background_icon', defType: 'drawable'), // Default is ic_launcher from folder mipmap
);
FlutterBackground.initialize(androidConfig: androidconfig);

But androidConfig is defined with a big C. So FlutterBackground.initialize(androidConfig: androidconfig) should use androidConfig instead of androidconfig