forked from qwertypool/flutter-code-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
richText.dart
21 lines (20 loc) · 837 Bytes
/
richText.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Rich Text is used when we want to edit some parts of the text and not to others
RichText(
text: TextSpan(
text:
'Follow flutter_girlz❤️\n TCS\'er 😜 🤪 🤨\nFlutter Developer💛 ',
style: TextStyle(
color: Theme.of(context).textTheme.bodyText1.color),
children: <TextSpan>[
TextSpan(
text: '...more\n',
style: TextStyle(
color: Colors.grey[500],
),
),
TextSpan(
text: 'deepapandey.herokuapp.com/',
style: TextStyle(color: Colors.blue[400])),
],
),
),