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

Feature Voting Board for Flutter. Collect feedback from your users and prioritize your development roadmap.

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',
    languageCode: 'en',
  );

  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: [
            ListTile(
              leading: const Icon(Icons.feedback),
              title: const Text(
                'Feature requests',
              ),
              subtitle: const Text(
                'View and vote on feature requests',
              ),
              onTap: () {
                UserOrient.setUser(
                    // uniqueIdentifier: '123123',
                    // fullName: 'Kamran',
                    // phoneNumber: '+994501234567',
                    // email: 'kamran@userorient.com',
                    // language: 'az',
                    // extra: {
                    //   'is_premium': true,
                    //   'is_azerbaijani': true,
                    //   'online_session_count': 17,
                    //   'subscription_date': '2021-09-01',
                    // },
                    );

                UserOrient.openBoard(context);
              },
            ),
            ListTile(
              leading: const Icon(Icons.feedback),
              title: const Text(
                'Logout',
              ),
              onTap: () {
                UserOrient.clearCache();
              },
            ),
          ],
        ),
      ),
    );
  }
}
11
likes
160
pub points
62%
popularity

Publisher

verified publisheruserorient.com

Feature Voting Board for Flutter. Collect feedback from your users and prioritize your development roadmap.

Homepage
Repository (GitHub)
View/report issues

Topics

#feature-request #feedback #user-experience #board #upvote

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_svg, flutter_svg_provider, http, shared_preferences, url_launcher

More

Packages that depend on userorient_flutter