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

outdated

Allow inline links in text for Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_linkify/flutter_linkify.dart';
import 'package:url_launcher/url_launcher.dart';

void main() => runApp(new LinkifyExample());

class LinkifyExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'flutter_linkify example',
      home: Scaffold(
        appBar: AppBar(
          title: Text('flutter_linkify example'),
        ),
        body: Center(
          child: Linkify(
            onOpen: (url) async {
              if (await canLaunch(url)) {
                await launch(url);
              } else {
                throw 'Could not launch $url';
              }
            },
            text: "Made by https://cretezy.com",
          ),
        ),
      ),
    );
  }
}
744
likes
0
pub points
99%
popularity

Publisher

verified publishercretezy.com

Allow inline links in text for Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_linkify