link_target

Last updated:

0 purchases

link_target Image
link_target Images
Add to Cart

Description:

link target

Link Target #



Adds hyperlink glance behaviour on hover found on the bottom left of the browser page.
Safe to use on all platform without worrying exception thrown due to platform checks.

Getting started #
Add link_target to pubspec.yaml of your project:
dart pub add link_target
copied to clipboard
Import it in your Dart code:
import 'package:link_target/link_target.dart';
copied to clipboard

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'),
),
);
}
}
copied to clipboard
View the demo app in example directory for complete sample.
License #
Link target is under MIT license

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.