mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
[flutter]: fix scrollbar does't have default animation for styleed_widget
This commit is contained in:
parent
818aff46d4
commit
3bd147a058
2
app_flowy/.vscode/settings.json
vendored
2
app_flowy/.vscode/settings.json
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"[dart]": {
|
||||
"editor.formatOnSave": false,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnType": true,
|
||||
"editor.rulers": [
|
||||
120
|
||||
|
@ -173,7 +173,7 @@ class ScrollbarState extends State<StyledScrollbar> {
|
||||
),
|
||||
),
|
||||
)
|
||||
]).opacity(showHandle ? 1.0 : 0.0, animate: false);
|
||||
]).opacity(showHandle ? 1.0 : 0.0, animate: true);
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -237,7 +237,9 @@ class ScrollbarListStack extends StatelessWidget {
|
||||
trackColor: trackColor,
|
||||
handleColor: handleColor,
|
||||
),
|
||||
),
|
||||
)
|
||||
// The animate will be used by the children that using styled_widget.
|
||||
.animate(const Duration(milliseconds: 250), Curves.easeOut),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user