Skip to content

Commit 5112faf

Browse files
authored
Merge pull request #131 from codingpot/feat-accent-color-for-expand-text-in-abstract
feat: use accentColor for ExpandableText icon
2 parents dffb270 + 2964191 commit 5112faf

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

client/lib/widgets/components/expandable_text.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class _ExpandableTextState extends State<ExpandableText> {
3434
IconButton(
3535
iconSize: iconSize,
3636
onPressed: onPressed,
37+
color: Theme.of(context).accentColor,
3738
icon: const Icon(Icons.keyboard_arrow_up)),
3839
],
3940
),
@@ -55,6 +56,7 @@ class _ExpandableTextState extends State<ExpandableText> {
5556
child: IconButton(
5657
iconSize: iconSize,
5758
onPressed: onPressed,
59+
color: Theme.of(context).accentColor,
5860
icon: const Icon(Icons.keyboard_arrow_down)))
5961
]);
6062
}

client/lib/widgets/detail/repository.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,9 @@ class RepositoryWidget extends StatelessWidget {
2222
"Repositories",
2323
style: Theme.of(context).textTheme.headline1,
2424
)),
25-
// ignore: sized_box_for_whitespace
26-
Container(
27-
height: 150,
28-
child: GridView.builder(
29-
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
30-
maxCrossAxisExtent: 200,
31-
childAspectRatio: 6.5 / 2,
32-
),
25+
SizedBox(
26+
height: 400,
27+
child: ListView.builder(
3328
itemCount: visibleRepositories.length,
3429
itemBuilder: (BuildContext context, int index) =>
3530
getItemCard(context, visibleRepositories[index])))
@@ -76,6 +71,11 @@ class RepositoryWidget extends StatelessWidget {
7671
title: Text(
7772
extractRepoNameFromURL(repo.url),
7873
),
74+
subtitle: Text(
75+
repo.description,
76+
maxLines: 1,
77+
overflow: TextOverflow.ellipsis,
78+
),
7979
)),
8080
);
8181
}

0 commit comments

Comments
 (0)