v2.0.2
smooth_list_view
마우스와 화살표 키를 사용할 때 부드러운 스크롤링을 구현하는 ListView 생성자.
35좋아요 35430일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
Flutter에서 ListView의 부드러운 구현.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A flutter plugin to implement smooth scrolling on desktop and web.
ListView but betterSmoothListView(...) : behave exactly like a classic ListView(...)
except that it makes scrolling with a mouse wheel smoother.SmoothListView.builder(...) : behave exactly like a classic
ListView.builder(...) except that it makes scrolling with a mouse wheel
smoother.SmoothListView.adapative(...) : behave exactly like a classic
ListView(...) except that it allows you to easily switch between
smooth scroll and classic scroll.SmoothListView.adaptiveBuilder(...) : behave exactly like a classic
ListView.builder(...) except that it allows you to easily switch between
smooth scroll and classic scroll.First, add the package to your pubspec.yaml :
flutter pub add smooth_list_view
Then import it inside your Dart code :
import 'package:smooth_list_view/smooth_list_view.dart';
Import the package :
import 'package:smooth_list_view/smooth_list_view.dart';
Replace :
// ...
@override
Widget build(BuildContext context) {
return ListView(...);
}
// ...
With :
// ...
@override
Widget build(BuildContext context) {
// You can keep the exact same parameters
return SmoothListView(...);
}
// ...
Replace :
// ...
@override
Widget build(BuildContext context) {
return ListView.builder(...);
}
// ...
With :
// ...
@override
Widget build(BuildContext context) {
// You can keep the exact same parameters
return SmoothListView.builder(...);
}
// ...
Replace :
// ...
@override
Widget build(BuildContext context) {
return ListView.separated(...);
}
// ...
With :
// ...
@override
Widget build(BuildContext context) {
// You can keep the exact same parameters
return SmoothListView.separated(...);
}
// ...
Replace :
// ...
@override
Widget build(BuildContext context) {
return ListView.custom(...);
}
// ...
With :
// ...
@override
Widget build(BuildContext context) {
// You can keep the exact same parameters
return SmoothListView.custom(...);
}
// ...
Feel free to check the Example panel for a richer implementation.
If you encounter any issue feel free to open one on GitHub :)
의존성 목록 3 개
{"sdk":"flutter"}{"sdk":"flutter"}^5.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗