Skip to content

Commit

Permalink
Merge pull request #131 from codingpot/feat-accent-color-for-expand-t…
Browse files Browse the repository at this point in the history
…ext-in-abstract

feat: use accentColor for ExpandableText icon
  • Loading branch information
kkweon authored Jun 25, 2021
2 parents dffb270 + 2964191 commit 5112faf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions client/lib/widgets/components/expandable_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class _ExpandableTextState extends State<ExpandableText> {
IconButton(
iconSize: iconSize,
onPressed: onPressed,
color: Theme.of(context).accentColor,
icon: const Icon(Icons.keyboard_arrow_up)),
],
),
Expand All @@ -55,6 +56,7 @@ class _ExpandableTextState extends State<ExpandableText> {
child: IconButton(
iconSize: iconSize,
onPressed: onPressed,
color: Theme.of(context).accentColor,
icon: const Icon(Icons.keyboard_arrow_down)))
]);
}
Expand Down
16 changes: 8 additions & 8 deletions client/lib/widgets/detail/repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,9 @@ class RepositoryWidget extends StatelessWidget {
"Repositories",
style: Theme.of(context).textTheme.headline1,
)),
// ignore: sized_box_for_whitespace
Container(
height: 150,
child: GridView.builder(
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
maxCrossAxisExtent: 200,
childAspectRatio: 6.5 / 2,
),
SizedBox(
height: 400,
child: ListView.builder(
itemCount: visibleRepositories.length,
itemBuilder: (BuildContext context, int index) =>
getItemCard(context, visibleRepositories[index])))
Expand Down Expand Up @@ -76,6 +71,11 @@ class RepositoryWidget extends StatelessWidget {
title: Text(
extractRepoNameFromURL(repo.url),
),
subtitle: Text(
repo.description,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
)),
);
}
Expand Down

0 comments on commit 5112faf

Please sign in to comment.