link_target 0.0.1 copy "link_target: ^0.0.1" to clipboard
link_target: ^0.0.1 copied to clipboard

Adds hyperlink glance behaviour on hover found on the bottom left of the browser page.

Link Target #

Tests Pipeline pub package License

Adds hyperlink glance behaviour on hover found on the bottom left of the browser page.

Preview #

https://github.com/user-attachments/assets/b4d9b2e4-33da-4501-b71d-c402b7d9d9d9

Getting started #

Add link_target to pubspec.yaml of your project:

dart pub add

Import it in your Dart code:

import 'package:link_target/link_target.dart';
  • Make sure to wrap your material home widget with LinkTargetRegion

Code sample #

import 'package:link_target/link_target.dart';

class MyAppInkwellOrGestureDetector extends StatelessWidget {
  const MyAppInkwellOrGestureDetector({super.key});
  
  @override
  Widget build(BuildContext context) {
    return LinkTargetDetector(
      target: 'https://dart.dev/',
      child: GestureDetector(
        child: Text('Glance dart.dev\'s link'),
      ),
    );
  }
}

View the demo app in example directory for complete sample.

License #

Link target is under MIT license

5
likes
0
points
41
downloads

Publisher

unverified uploader

Weekly Downloads

Adds hyperlink glance behaviour on hover found on the bottom left of the browser page.

Repository (GitHub)
View/report issues

Topics

#web #hyperlink #link-preview #link-glance

License

unknown (license)

Dependencies

flutter, provider

More

Packages that depend on link_target