auto_scroll_image 0.2.4-dev copy "auto_scroll_image: ^0.2.4-dev" to clipboard
auto_scroll_image: ^0.2.4-dev copied to clipboard

A Flutter package for auto scrolling images.

A Flutter package for auto-scrolling images. Compatible with iOS, Android, MacOS & Web

Features #

  • A Flutter package for auto-scrolling images.
  • This package provides a widget for displaying a horizontal list of images that automatically scrolls.
  • Users can customize the number of items, item width, and the duration of auto-scrolling.
  • For web page take care of width of SizedBox to see image scrolling

Getting started #

auto_scrolling_image #

make an assets folder in root of the project: #

image

Add two items to pubspec.yaml #

  • add auto_scroll_image to the dependencies
  • open assets path
dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.6
  auto_scroll_image: ^0.2.2-dev

assets:
  - assets/

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^3.0.0
flutter:
  uses-material-design: true

import :

import 'package:auto_scroll_image/auto_scroll_image.dart';

then add AutoScrollImage to your class:

home: Scaffold(
        appBar: AppBar(
          title: Text('Your App'),
        ),
        body: const Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            // Your other widgets can go here

            // Example usage of AutoScrollImage
            AutoScrollImage(
              itemCount: 10, // Customize itemCount
              itemWidth: 50.0, // Customize itemWidth
              autoScrollDuration: Duration(seconds: 2), // Customize autoScrollDuration
              timerInterval: Duration(seconds: 2), // Customize timerInterval
            ),

            // More of your widgets can follow here
          ],
        ),
      ),

final result would be on Android: #

Android #

image

iOS: #

image

macOS: #

image

Web: #

image ## Usage You can take a look at example bellow and customise it with your needs;
class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
              appBar: AppBar(
                title: const Text('Auto Scroll Image'),
              ),
              body: AutoScrollImage(
                itemCount: 10, // Customize itemCount
                itemWidth: 50.0, // Customize itemWidth
                autoScrollDuration: Duration(seconds: 2), // Customize autoScrollDuration
                timerInterval: Duration(seconds: 2), // Customize timerInterval
    ),
    );
  }
}



Additional information #

This package facilitates seamless image scrolling on your screen, making it ideal for showcasing advertisements or demonstrating your app's capabilities. Enhance user engagement by effortlessly presenting a dynamic list of images with this easy-to-use solution,

3
likes
0
points
47
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for auto scrolling images.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on auto_scroll_image