mirror of
https://github.com/git-touch/git-touch
synced 2025-02-08 23:58:46 +01:00
parent
c2cd992019
commit
b0193a5def
@ -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;
|
||||
@ -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(
|
||||
@ -84,7 +98,7 @@ class ContributionWidget extends StatelessWidget {
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user