-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(calendar): start to current date when past days are enabled
- Loading branch information
1 parent
d9623e9
commit 6eff6c9
Showing
4 changed files
with
92 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class LunaCustomScrollView extends StatelessWidget { | ||
final ScrollController controller; | ||
final List<Widget> slivers; | ||
|
||
const LunaCustomScrollView({ | ||
super.key, | ||
required this.controller, | ||
required this.slivers, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scrollbar( | ||
controller: controller, | ||
interactive: true, | ||
child: CustomScrollView( | ||
controller: controller, | ||
keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag, | ||
slivers: slivers, | ||
physics: const AlwaysScrollableScrollPhysics(), | ||
), | ||
); | ||
} | ||
} |