linkhive_flutter 1.0.0 copy "linkhive_flutter: ^1.0.0" to clipboard
linkhive_flutter: ^1.0.0 copied to clipboard

A Flutter plugin to connect with LinkHive SaaS for dynamic links.

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:linkhive_flutter/linkhive_flutter.dart';

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

  await LinkHiveClient.instance.connect(
    baseUrl: 'YOUR_BASE_URL_HERE', // Replace with your SaaS base URL
    projectId: 'YOUR_PROJECT_ID_HERE', // Replace with your project ID
    clientId: 'YOUR_CLIENT_ID_HERE', // Replace with your client ID
  );
  LinkHiveClient.instance.dynamicLinks.create(request)
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('LinkHive Plugin example app')),
      ),
    );
  }
}
5
likes
130
points
101
downloads

Publisher

verified publisherlinkhive.tech

Weekly Downloads

A Flutter plugin to connect with LinkHive SaaS for dynamic links.

Homepage

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

dio, flutter, flutter_secure_storage, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on linkhive_flutter

Packages that implement linkhive_flutter