sfmc_plugin 0.0.1 copy "sfmc_plugin: ^0.0.1" to clipboard
sfmc_plugin: ^0.0.1 copied to clipboard

PlatformAndroidiOS
outdated

Salesforce Marketing Cloud - MobilePush SDK for Flutter.

example/lib/main.dart

import 'dart:io';

import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'screens/home_screen.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  if (Platform.isAndroid) {
    await Firebase.initializeApp();
  }
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}
15
likes
140
pub points
76%
popularity

Publisher

unverified uploader

Salesforce Marketing Cloud - MobilePush SDK for Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on sfmc_plugin