Skip to content

Commit

Permalink
update: example
Browse files Browse the repository at this point in the history
  • Loading branch information
endless7 committed Sep 19, 2022
1 parent 1521a10 commit 84190ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions example/lib/pages/jump_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class _ScrollablePositionedListPageState

List<int> data = () {
List<int> data = <int>[];
for (var i = 0; i < 50; i++) {
for (var i = 0; i < 10000; i++) {
data.add(i);
}
return data;
Expand Down Expand Up @@ -135,17 +135,19 @@ class _ScrollablePositionedListPageState

Widget get jumpControlButtons => Row(
children: <Widget>[
const Text('jump to'),
const Text('jump'),
jumpButton(0),
jumpButton(5),
jumpButton(10),
jumpButton(30),
jumpButton(300),
jumpButton(3000),
],
);

final _scrollButtonStyle = ButtonStyle(
padding: MaterialStateProperty.all(
const EdgeInsets.symmetric(horizontal: 20, vertical: 0),
const EdgeInsets.symmetric(horizontal: 14, vertical: 0),
),
minimumSize: MaterialStateProperty.all(Size.zero),
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
Expand Down

0 comments on commit 84190ba

Please sign in to comment.