Support infinite scrolling for CupertinoPicker. (#19789)

Allows the cupertino picker to be scroll infinitely by adding builder.
This commit is contained in:
Viet Do
2018-08-13 12:26:07 -07:00
committed by GitHub
parent 9b309ba8b6
commit 1057d39dd0
6 changed files with 889 additions and 111 deletions

View File

@@ -99,6 +99,7 @@ class _CupertinoPickerDemoState extends State<CupertinoPickerDemo> {
child: new Text(index.toString()),
);
}),
looping: true,
),
),
new Expanded(
@@ -123,6 +124,7 @@ class _CupertinoPickerDemoState extends State<CupertinoPickerDemo> {
child: new Text(index.toString()),
);
}),
looping: true,
),
),
],