mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 06:37:14 -04:00
[flutter]: fix scrollbar does't have default animation for styleed_widget
This commit is contained in:
parent
818aff46d4
commit
3bd147a058
2 changed files with 5 additions and 3 deletions
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…
Add table
Add a link
Reference in a new issue