Advertisement
muhaiminurabir

rich text richtext flutter

May 14th, 2025 (edited)
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.89 KB | None | 0 0
  1.               RichText(
  2.                 text: TextSpan(
  3.                   style: GoogleFonts.poppins(
  4.                     fontSize: 14,
  5.                     fontWeight: FontWeight.w400,
  6.                     color: ProjectColors.black4,
  7.                   ),
  8.                   children: [
  9.                     TextSpan(text: "We have sent an "),
  10.                     TextSpan(
  11.                       text: "OTP ",
  12.                       style: GoogleFonts.poppins(
  13.                         fontSize: 14,
  14.                         fontWeight: FontWeight.w700,
  15.                         color: ProjectColors.black4,
  16.                       ),
  17.                         recognizer: TapGestureRecognizer()..onTap = () =>Log().showMessageToast(message: "paisi"),
  18.  
  19.                     ),
  20.                     TextSpan(text: "to the following email address"),
  21.                   ],
  22.                 ),
  23.               ),
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement