auto_scroll_slider 1.0.0 copy "auto_scroll_slider: ^1.0.0" to clipboard
auto_scroll_slider: ^1.0.0 copied to clipboard

A seamless solution for auto-scrolling image lists, enhancing user experience with dynamic animations

Alt Text

View on GitHub View on GitHub View on Linkedin View on Github

Preview #

Alt Text

auto scroll slider Package #

The Auto Scroll Slider package for Flutter provides a convenient solution for creating auto-scrolling image lists with an animated interface, enhancing user experience and visual appeal.

Installing #

Add dependency to pubspec.yaml To use the latest version of auto_scroll_slider, add the following line to your pubspec.yaml file:

dependencies:
  auto_scroll_slider: ^1.0.0

Install it You can install packages from the command line: with Flutter:

$ flutter pub get

Import the package

import 'package:auto_scroll_slider/auto_scroll_slider.dart';

Usage #

AutoScroll
(
length: list.length,
scrollController: scrollController,
reverse: true,
itemBuilder: (context, index) {
return Image.network(
list[index],
height: 250,
width: 400,
fit: BoxFit.cover,
);
},
);

Properties of Auro Scroll Slider: #

Property Name Type Default Value Description
length int - The number of items in the list.
scrollController ScrollController - Controller for the scroll position of the list.
reverse bool? - Whether the list should be displayed in reverse order.
curve Curve? - The curve to use for the animation.
duration int? - The duration of the scroll animation.
scrollDirection Axis? - The axis along which the list scrolls.
itemBuilder Widget? Function(BuildContext, int) - A function that returns a widget for each item in the list.
dragStartBehavior DragStartBehavior? - Determines the way drag start behavior is handled.
padding EdgeInsetsGeometry? - Padding around the list.
shrinkWrap bool? - Whether the extent of the scroll view should be determined by the contents of the scroll view.

Example #

import 'package:animated_cursor/animated_cursor.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Animated Cursor',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.red,
      ),
      home: AnimatedCursor(
        // cursor: SystemMouseCursors.alias,
        circleColor: Colors.red,
        dotColor: Colors.red,
        backgroundColor: Colors.black,
        borderWidth: 1,
        child: Container(color: Colors.black),
      ),
    );
  }
}

Support #

For any inquiries or issues regarding the Auto Scroll Slider package, feel free to open an issue on GitHub.

License #

This package is released under the MIT License.

Additional Information #

👍 We're thrilled that our solution is adding value and positively impacting your project! ✨ Your support means the world to us. 🌟 If you're loving the results, show your appreciation with a thumbs up! 💫 We're committed to excellence and continuously strive to exceed your expectations. Thank you for choosing us! 🚀

-Darshak Desai

15
likes
150
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

A seamless solution for auto-scrolling image lists, enhancing user experience with dynamic animations

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on auto_scroll_slider