Skip to main content

pulsar_flutter 0.1.0 copy "pulsar_flutter: ^0.1.0" to clipboard
pulsar_flutter: ^0.1.0 copied to clipboard

Over-the-air updates for Flutter apps through Pulsar. Ship Remote Flutter Widgets screens, text, JSON config and images to live apps without a store release.

example/main.dart

import 'package:flutter/material.dart';
import 'package:pulsar_flutter/pulsar_flutter.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Pulsar.start(const PulsarConfig(
    deploymentKey: String.fromEnvironment('PULSAR_DEPLOYMENT_KEY'),
    appVersion: '1.0.0',
    serverUrl: 'https://api.usepulsar.dev',
  ));
  runApp(const ExampleApp());
}

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Pulsar example')),
        body: Builder(
          builder: (context) => PulsarScreen(
            library: 'screens/home.rfwtxt',
            widget: 'Home',
            fallback: const Center(child: Text('Built-in screen')),
            onEvent: (name, arguments) => ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('Event: $name'))),
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
135
downloads

Documentation

Documentation
API reference

Publisher

verified publishernovacraft.africa

Weekly Downloads

Over-the-air updates for Flutter apps through Pulsar. Ship Remote Flutter Widgets screens, text, JSON config and images to live apps without a store release.

Homepage

Topics

#ota #code-push #remote-widgets #hot-update

License

MIT (license)

Dependencies

archive, crypto, flutter, path_provider, rfw

More

Packages that depend on pulsar_flutter