Closed 33-Elephants closed 4 years ago
Can you give a full code example?
Here you go:
import 'package:flutter/material.dart';
import 'package:flutter_linkify/flutter_linkify.dart';
class AppExperimentalWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Center(
child: Linkify(
text : "test@google.com and http://google.com",
textAlign: TextAlign.left,
linkTypes: <LinkType> [
LinkType.url,
LinkType.email
],
onOpen: (link) => print("${link.text}")
)
)
)
);
}
}
Sorry for being late, but this seems to work. Try to update to the latest (v3)
It looks like email is not recognized for the following string: "test@google.com and http://google.com"