Note: For better experience always precache image before providing the images to the widget as follows.
Example for loading and precaching images from assets :
List<ImageProvider> imageList = List<ImageProvider>();
for (int i = 1; i <= 52; i++) {
imageList.add(AssetImage('assets/sample/$i.png'));
// To precache images so that when required they are loaded faster.awaitprecacheImage(AssetImage('assets/sample/$i.png'), context);
}
Mandatory fields
Attribute
Type
Usage
imageList
List
The list of images to be displayed
Customisable fields
Attribute
Type
Default Value
autoRotate
bool
false
rotationCount
int
1
rotationDirection
RotationDirection
RotationDirection.clockwise
frameChangeDuration
Duration
Duration(milliseconds: 80)
swipeSensitivity
int
1 (Note : Range allowed is 1-5 , less than 1 would be considered 1 and more than 5 would be considered 5)
Copyright2020HarpreetSingh & DamanpreetSinghLicensed under the ApacheLicense, Version2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unlessrequired by applicable law or agreed to in writing, software
distributed under the Licenseis distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the Licensefor the specific language governing permissions and
limitations under the License.