Skip to content

Commit

Permalink
fix: hide contribution graph scrollbar (#177)
Browse files Browse the repository at this point in the history
closes #37
  • Loading branch information
shreyas1599 committed Jan 30, 2021
1 parent c2cd992 commit b0193a5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lib/widgets/contribution.dart
Expand Up @@ -16,6 +16,19 @@ const darkMapper = {
'#216e39': '#00c647'
};

class HideScrollbar extends StatelessWidget {
final Widget child;
const HideScrollbar({Key key, this.child}) : super(key: key);

@override
Widget build(BuildContext context) {
return NotificationListener<ScrollNotification>(
onNotification: (_) => true,
child: child,
);
}
}

class ContributionDay {
String hexColor;
int count;
Expand Down Expand Up @@ -55,7 +68,8 @@ class ContributionWidget extends StatelessWidget {
return Container(
alignment: Alignment.center,
padding: CommonStyle.padding,
child: SingleChildScrollView(
child: HideScrollbar(
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
reverse: true,
child: Wrap(
Expand Down Expand Up @@ -84,7 +98,7 @@ class ContributionWidget extends StatelessWidget {
)
],
),
),
)),
);
}
}

0 comments on commit b0193a5

Please sign in to comment.