Skip to content

Commit 1bc9d91

Browse files
committed
Text overflow fixed
1 parent 8c17acb commit 1bc9d91

File tree

1 file changed

+30
-22
lines changed

1 file changed

+30
-22
lines changed

lib/views/about/about.dart

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -111,29 +111,37 @@ class _AboutPageState extends State<AboutPage> {
111111
],
112112
),
113113
),
114-
RichText(
115-
text: TextSpan(
116-
children: <TextSpan>[
117-
TextSpan(
118-
text: 'Package: ',
119-
style: GoogleFonts.poppins(
120-
fontWeight: TaskWarriorFonts.bold,
121-
fontSize: TaskWarriorFonts.fontSizeMedium,
122-
color: AppSettings.isDarkMode
123-
? TaskWarriorColors.white
124-
: TaskWarriorColors.black,
125-
),
126-
),
127-
TextSpan(
128-
text: appInfoLines[0],
129-
style: GoogleFonts.poppins(
130-
fontSize: TaskWarriorFonts.fontSizeMedium,
131-
color: AppSettings.isDarkMode
132-
? TaskWarriorColors.white
133-
: TaskWarriorColors.black,
134-
),
114+
SizedBox(
115+
width: 95.w,
116+
child: FittedBox(
117+
fit: BoxFit.fitWidth,
118+
child: RichText(
119+
text: TextSpan(
120+
children: <TextSpan>[
121+
TextSpan(
122+
text: 'Package: ',
123+
style: GoogleFonts.poppins(
124+
fontWeight: TaskWarriorFonts.bold,
125+
fontSize:
126+
TaskWarriorFonts.fontSizeMedium,
127+
color: AppSettings.isDarkMode
128+
? TaskWarriorColors.white
129+
: TaskWarriorColors.black,
130+
),
131+
),
132+
TextSpan(
133+
text: appInfoLines[0],
134+
style: GoogleFonts.poppins(
135+
fontSize:
136+
TaskWarriorFonts.fontSizeMedium,
137+
color: AppSettings.isDarkMode
138+
? TaskWarriorColors.white
139+
: TaskWarriorColors.black,
140+
),
141+
),
142+
],
135143
),
136-
],
144+
),
137145
),
138146
),
139147
],

0 commit comments

Comments
 (0)