link_bridge 1.1.1 copy "link_bridge: ^1.1.1" to clipboard
link_bridge: ^1.1.1 copied to clipboard

A Flutter plugin for handling deep links on Android and iOS. Supports both custom URL schemes and universal links for seamless cross-platform navigation.

example/lib/main.dart

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

void main() {
  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('LinkBridge'),
        ),
        body: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisSize: MainAxisSize.min,
          children: [
            InkWell(
              onTap: () {
                LinkBridge().init().then((link) {
                  debugPrint(link.toString());
                });
              },
              child: Text(
                'Get Initial Link',
              ),
            ),
            SizedBox(
              height: 40,
            ),
            InkWell(
              onTap: () {
                LinkBridge().listen((link) {
                  debugPrint(link.toString());
                });
              },
              child: Text(
                'Start Listen Link',
              ),
            ),
          ],
        ),
      ),
    );
  }
}
19
likes
140
points
258
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for handling deep links on Android and iOS. Supports both custom URL schemes and universal links for seamless cross-platform navigation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on link_bridge