uplift_funnel_flutter 0.10.1
uplift_funnel_flutter: ^0.10.1 copied to clipboard
Native onboarding and paywall flows for iOS, authored in a dashboard and updated without an app release. Rendered by the native engine, so a Flutter app and a native app draw a flow identically. A/B e [...]
// Demo host for the Uplift Funnel SDK.
//
// It exists to show the whole seam between a flow and the app around it: every
// host handoff the engine can ask for, the store catalog a paywall reads its
// prices from, the identity and analytics calls, and an A/B run. If something
// is meant to be wired by you, it is wired here — visibly, so you can watch it
// happen while you walk a flow.
//
// There is no server field. A published build talks to the production API and
// nothing else; a local build is pointed elsewhere when it is compiled:
//
// flutter run --dart-define=UPLIFT_SERVER_URL=http://localhost:3000
import 'package:flutter/material.dart';
import 'demo_home.dart';
import 'demo_prompt.dart';
void main() => runApp(const UpliftFunnelExampleApp());
class UpliftFunnelExampleApp extends StatelessWidget {
const UpliftFunnelExampleApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Uplift Funnel demo',
debugShowCheckedModeBanner: false,
// The handoffs are registered once, outside any widget's context, and
// still have to put a dialog on screen. This key is how they reach a
// navigator from there.
navigatorKey: demoNavigatorKey,
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFF2E7D32)),
useMaterial3: true,
),
home: const DemoHome(),
);
}
}