Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. Text("Hello",
  2. style: TextStyle(color: Colors.black, fontWeight: FontWeight.w900))
  3.  
  4. RichText(
  5. text: TextSpan(
  6. text: 'Hello ',
  7. style: TextStyle(color: Colors.black, fontWeight: FontWeight.w900)),
  8. children: <TextSpan>[
  9. TextSpan(text: 'bold', style: TextStyle(fontWeight: FontWeight.bold)),
  10. TextSpan(text: ' world!'),
  11. ],
  12. ),
  13. )
  14.  
  15. Container(
  16. margin: const EdgeInsets.only(left: 20.0, right: 20.0, top: 10.0, bottom: 10.0),
  17. child: RichText(
  18. textAlign: TextAlign.center,
  19. text: TextSpan(
  20. children: [
  21. TextSpan(
  22. text: 'By clicking sign up, you have read and agreed to our ',
  23. style: TextStyle(color: Colors.black54),
  24. ),
  25. TextSpan(
  26. text: 'Terms & Conditions',
  27. style: TextStyle(color: Colors.blue),
  28. recognizer: TapGestureRecognizer()
  29. ..onTap = () {
  30. print('Tapped on hyperlink');
  31. },
  32. ),
  33. TextSpan(
  34. text: '.',
  35. style: TextStyle(color: Colors.black54),
  36. ),
  37. ],
  38. ),
  39. ),
  40. ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement