fireflutter 0.0.39 copy "fireflutter: ^0.0.39" to clipboard
fireflutter: ^0.0.39 copied to clipboard

outdated

A free, open source, complete, rapid development package for creating Social apps, Chat apps, Community(Forum) apps, Shopping mall apps, and much more based on Firebase.

example/example.md

Example #

main.dart #

void main() async {
  try {
    await ff.init(
      enableNotification: true,
      firebaseServerToken: '...',
      settings: {},
      translations: translations,
    );
  } catch (e) {
    print('Error: $e');
  }

  runApp(MainApp());
}

class MainApp extends StatefulWidget {
  @override
  _MainAppState createState() => _MainAppState();
}

class _MainAppState extends State<MainApp> {
  @override
  void initState() {
    super.initState();

    ff.settingsChange.listen((settings) {
      setState(() {}); // You may re-render the screen if you wish.
    });

    ff.translationsChange.listen(
        (translations) => setState(() => updateTranslations(translations)));

    ff.notification.listen((x) {
        Map<String, dynamic> notification = x['notification'];
        Map<dynamic, dynamic> data = x['data'];
        NotificationType type = x['type'];
        print('NotificationType: $type');
        print('notification: $notification');
        print('data: $data');
        // ...
    );
  }
  // ..
155
likes
0
pub points
68%
popularity

Publisher

verified publishersonub.com

A free, open source, complete, rapid development package for creating Social apps, Chat apps, Community(Forum) apps, Shopping mall apps, and much more based on Firebase.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

algolia, cloud_firestore, crypto, dio, firebase_auth, firebase_core, firebase_messaging, firebase_storage, flutter, flutter_facebook_auth, flutter_image_compress, geoflutterfire, google_sign_in, image_picker, location, merge_map, path, path_provider, permission_handler, rxdart, sign_in_with_apple

More

Packages that depend on fireflutter