Skip to content

Commit

Permalink
improved task details widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel401 committed Sep 7, 2023
1 parent bd17c4c commit 3562686
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions lib/services/task_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,22 @@ class AttributeWidget extends StatelessWidget {
child: Row(
children: [
Text(
'${'$name:'.padRight(13)}$localValue',
style: TextStyle(
'$name:'.padRight(13),
style: GoogleFonts.firaMono(
fontWeight: FontWeight.bold,
fontSize: 15,
color:
AppSettings.isDarkMode ? Colors.white : Colors.black,
),
),
Text(
localValue?.toString() ?? "not selected",
style: GoogleFonts.firaMono(
fontSize: 15,
color:
AppSettings.isDarkMode ? Colors.white : Colors.black,
),
)
],
),
),
Expand Down Expand Up @@ -330,10 +340,36 @@ class TagsWidget extends StatelessWidget {
scrollDirection: Axis.horizontal,
child: Row(
children: [
Text(
'${'$name: '}${(value as ListBuilder?)?.build()}',
style: GoogleFonts.firaMono(),
RichText(
text: TextSpan(
children: <TextSpan>[
TextSpan(
text: '$name:'.padRight(13),
style: GoogleFonts.firaMono(
fontWeight: FontWeight.bold,
fontSize: 15,
color: AppSettings.isDarkMode
? Colors.white
: Colors.black,
),
),
TextSpan(
text:
'${(value as ListBuilder?)?.build() ?? 'not selected'}',
style: GoogleFonts.firaMono(
fontSize: 15,
color: AppSettings.isDarkMode
? Colors.white
: Colors.black,
),
)
],
),
),
// Text(
// '${'$name: '}${(value as ListBuilder?)?.build()}',
// style: GoogleFonts.firaMono(),
// ),
],
),
),
Expand Down

0 comments on commit 3562686

Please sign in to comment.