linkwell 2.0.6 copy "linkwell: ^2.0.6" to clipboard
linkwell: ^2.0.6 copied to clipboard

LinkWell is Text Plugin that detects URLs and Emails in a String and when tapped opens in users browsers,

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:linkwell/linkwell.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: Container(
        child:  Center(
          child: Column(
              crossAxisAlignment: CrossAxisAlignment.center,
                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[

                  SizedBox(
                    height: 10,
                  ),
                  LinkWell(
                    "Hi here's my email: samuelezedi@gmail.com and website: https://pronoun.com.ng",
                  )
                ],
              ),
        ),


      ),
    );
  }
}
81
likes
130
pub points
92%
popularity

Publisher

verified publishersamuelezedi.com

LinkWell is Text Plugin that detects URLs and Emails in a String and when tapped opens in users browsers,

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, url_launcher

More

Packages that depend on linkwell