v2.1.1
scrolls_to_top
Um pacote Dart para trabalhar com o recurso iOS scrolls-to-top. Fácil de usar
59Curtidas 34,9 milDownloads em 30 dias150Pontos Pub
AndroidiOSWebmacOSWindowsLinux
Um pacote Dart para trabalhar com o recurso de rolagem para o topo no iOS
Texto original em inglês. Visite o GitHub para a versão atual.
A dart package for working with scrolls-to-top iOS feature
Why is this needed? This is necessary for those cases when you have several nested Scaffolds or you need to distinguish the tap event in the status bar from other scroll events
Just wrap any widget with ScrollsToTop and provide onScrollsToTop argument
@override
Widget build(BuildContext context) {
return ScrollsToTop(
onScrollsToTop: _onScrollsToTop,
scaffold: Scaffold(
appBar: AppBar(title: const Text('Scroll to top')),
body: Container(),
),
);
}
Future<void> _onScrollsToTop(ScrollsToTopEvent event) async {
//TODO: Your code
}
Lista de dependências 3 itens
{"sdk":"flutter"}^2.0.3{"sdk":"flutter"}Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗