linkwell 0.1.1+5 copy "linkwell: ^0.1.1+5" to clipboard
linkwell: ^0.1.1+5 copied to clipboard

outdated

LinkWell is a Text widget that highlight all the links in the text which then navigates the user to the URL when tapped.

example/lib/main.dart

import 'package:example/b.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'LinkWell Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'LinkWell Example'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  
  
  @override
  Widget build(BuildContext context) {

    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      
      body: Center(
        child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              LinkWell(
                  """My website url: https://blasanka.github.io/ Google sam@mail.com search medium.com/@samuelezedi using: www.google.com, social gdk@gmail.com media is facebook.com, http://example.com/method?param=flutter stackoverflow.com is my greatest website. DartPad share: https://github.com/dart-lang/dart-pad/wiki/Sharing-Guide see this example and edit it here """,
              ),
              SizedBox(
                height: 20,
              ),
              Text(
                """My website url: https://blasanka.github.io/ Google sam@mail.com search medium.com/@samuelezedi using: www.google.com, social gdk@gmail.com media is facebook.com, http://example.com/method?param=flutter stackoverflow.com is my greatest website. DartPad share: https://github.com/dart-lang/dart-pad/wiki/Sharing-Guide see this example and edit it here """
              ),
              LinkWell("Here I am samuel@ezedi.com", textAlign: TextAlign.end,)
            ],
          ),
        
      ),
    );
  }
}
80
likes
0
pub points
92%
popularity

Publisher

verified publishersamuelezedi.com

LinkWell is a Text widget that highlight all the links in the text which then navigates the user to the URL when tapped.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, url_launcher

More

Packages that depend on linkwell