link_target 0.0.2
link_target: ^0.0.2 copied to clipboard
Adds hyperlink glance behaviour on hover found on the bottom left of the browser page.
Link Target #
Adds hyperlink glance behaviour on hover found on the bottom left of the browser page.
Getting started #
Add link_target to pubspec.yaml of your project:
dart pub add link_target
Import it in your Dart code:
import 'package:link_target/link_target.dart';
- Make sure to wrap your material
homewidget withLinkTargetRegion
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.cn/',
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