add scrollbar to chips
This commit is contained in:
parent
128847dec2
commit
e2c171adec
1 changed files with 30 additions and 25 deletions
|
|
@ -83,7 +83,10 @@ final class const EmojiPicker({
|
|||
),
|
||||
SizedBox(
|
||||
height: 48,
|
||||
child: Scrollbar(
|
||||
controller: categoryScrollController,
|
||||
child: SuperListView(
|
||||
padding: .only(bottom: 12),
|
||||
scrollDirection: .horizontal,
|
||||
controller: categoryScrollController,
|
||||
listController: categoryListController,
|
||||
|
|
@ -103,7 +106,8 @@ final class const EmojiPicker({
|
|||
index: index,
|
||||
scrollController: scrollController,
|
||||
curve: (_) => Curves.easeInOut,
|
||||
duration: (_) => Duration(milliseconds: 300),
|
||||
duration: (_) =>
|
||||
Duration(milliseconds: 300),
|
||||
alignment: 0,
|
||||
);
|
||||
},
|
||||
|
|
@ -113,6 +117,7 @@ final class const EmojiPicker({
|
|||
.toList(),
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: SuperListView.builder(
|
||||
listController: listController,
|
||||
|
|
|
|||
Loading…
Reference in a new issue