Skip to content

Commit

Permalink
fix: highlight focused video card with main color
Browse files Browse the repository at this point in the history
reduce duration time chip margin/size
  • Loading branch information
solsticedhiver committed Dec 9, 2023
1 parent 20582d2 commit 189ef2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ class VideoCardState extends State<VideoCard> {
bottom: 5,
left: 5,
child: Chip(
labelPadding: const EdgeInsets.only(
left: 0, right: 0, top: 0, bottom: 0),
backgroundColor:
Theme.of(context).colorScheme.surface,
label: Text(widget.video.durationLabel!,
Expand Down
3 changes: 3 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ class CarouselList extends StatelessWidget {
size: size,
children: videos.map((v) {
return InkWell(
borderRadius: BorderRadius.circular(16),
focusColor: Colors.deepOrange,
highlightColor: Colors.deepOrange,
onLongPress: () {
_showDialogProgram(context, videos, videos.indexOf(v));
},
Expand Down
3 changes: 3 additions & 0 deletions lib/serie.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ class _SerieScreenState extends State<SerieScreen> {
crossAxisCount: count,
children: videos.map((v) {
return InkWell(
borderRadius: BorderRadius.circular(16),
focusColor: Colors.deepOrange,
highlightColor: Colors.deepOrange,
onLongPress: () {
_showDialogProgram(
context, videos, videos.indexOf(v));
Expand Down

0 comments on commit 189ef2f

Please sign in to comment.