userorient_flutter 0.0.3 copy "userorient_flutter: ^0.0.3" to clipboard
userorient_flutter: ^0.0.3 copied to clipboard

UserOrient Flutter SDK: Discover what your users really want and stop building wrong features.

example/lib/main.dart

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

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  UserOrient.configure(
    apiKey: 'YOUR_API_KEY',
  );

  UserOrient.setUser(
    fullName: 'Nelson',
    email: 'nelson@bighetti.cc',
    language: 'en',
    extra: {
      'is_premium': true,
      'subscription_date': '2021-09-01',
    },
  );

  runApp(const MainApp());
}

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: HomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SizedBox(
        width: double.infinity,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            FilledButton.tonal(
              child: const Text(
                'Open Features Board',
              ),
              onPressed: () {
                UserOrient.openBoard(context);
              },
            ),
            const SizedBox(height: 8.0),
            FilledButton.tonal(
              child: const Text(
                'Open Feedback Form',
              ),
              onPressed: () {
                UserOrient.openForm(context);
              },
            ),
          ],
        ),
      ),
    );
  }
}
11
likes
0
pub points
62%
popularity

Publisher

verified publisheruserorient.com

UserOrient Flutter SDK: Discover what your users really want and stop building wrong features.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_svg, flutter_svg_provider, http, shared_preferences, url_launcher

More

Packages that depend on userorient_flutter