Installation
Install the library from pub:
dependencies:
pushwoosh_inbox: '^2.3.23'
Usage
Present the Inbox with the SDK's default appearance:
import 'package:pushwoosh_inbox/pushwoosh_inbox.dart';
...
PushwooshInbox.presentInboxUI();
To customize the appearance, pass a PWInboxStyle. Every field is optional —
the ones you leave unset keep their default value. Images are Flutter asset
paths and must be declared in your pubspec.yaml:
PWInboxStyle style = PWInboxStyle();
style.barTitle = "Messages";
style.barBackgroundColor = "#3AD29F";
style.accentColor = "#6750A4";
style.listEmptyMessage = "No messages yet";
style.defaultImage = "assets/images/logo.png";
PushwooshInbox.presentInboxUI(style: style);