Skip to content

Commit

Permalink
Removed Selctable Text
Browse files Browse the repository at this point in the history
  • Loading branch information
palmer-matthew committed Sep 11, 2020
1 parent 4977a39 commit 3bf25b9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/screens/scholarship_screen/scholarship_detailsview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,20 @@ class ScholarshipDetailsView extends StatelessWidget {
return UnorderedListItem(title, theme['isDark']);
}else if(content is! String){
return ListTile(
title: SelectableText(
title: Text(
title,
toolbarOptions: ToolbarOptions(copy: true, selectAll: true,),
),
subtitle: content,
);
}

return ListTile(
visualDensity: VisualDensity(vertical: -2.0, horizontal: 1.0),
title: SelectableText(
title: Text(
title,
toolbarOptions: ToolbarOptions(copy: true, selectAll: true,),
),
subtitle: SelectableText(
subtitle: Text(
content,
toolbarOptions: ToolbarOptions(copy: true, selectAll: true,),
),
);
}
Expand Down Expand Up @@ -315,12 +312,11 @@ class UnorderedListItem extends StatelessWidget {
),
),
Expanded(
child: SelectableText(
child: Text(
text,
style: TextStyle(
color: isDark ? Colors.white54 : Colors.black45,
),
toolbarOptions: ToolbarOptions(copy: true, selectAll: true,),
),
),
],
Expand Down

0 comments on commit 3bf25b9

Please sign in to comment.