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:
2
app_flowy/.vscode/settings.json
vendored
2
app_flowy/.vscode/settings.json
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"[dart]": {
|
"[dart]": {
|
||||||
"editor.formatOnSave": false,
|
"editor.formatOnSave": true,
|
||||||
"editor.formatOnType": true,
|
"editor.formatOnType": true,
|
||||||
"editor.rulers": [
|
"editor.rulers": [
|
||||||
120
|
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,
|
trackColor: trackColor,
|
||||||
handleColor: handleColor,
|
handleColor: handleColor,
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
|
// The animate will be used by the children that using styled_widget.
|
||||||
|
.animate(const Duration(milliseconds: 250), Curves.easeOut),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user