simple_slider 0.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 74

Simple Image Slider Widget #

A flutter library to show images in a sliding widget, the library also provides out of the box the ability to automatically cache the images used in the slider.

How to add #

Add this to your package's pubspec.yaml file:

  simple_slider: "^0.0.1"

Add it to your dart file:

import 'package:simple_slider/simple_slider.dart';

How to use #

The Simple slider widget is created with a simple ImageSliderWidget object that takes an array of images to slide

            imageUrls: _imageUrls,
            imageBorderRadius: BorderRadius.circular(8.0),

How it looks #

0.0.1 #

  • TODO: Describe initial release.


import 'package:flutter/material.dart';
import 'package:simple_slider/simple_slider.dart';

void main() => runApp(new MyApp());

class MyApp extends StatefulWidget {
  MyAppState createState() {
    return MyAppState();

class MyAppState extends State<MyApp> {

  final _imageUrls = [

  Widget build(BuildContext context) {
    var title = "Image Slider Widget";
    return MaterialApp(
      title: title,
      home: Scaffold(
        appBar: AppBar(
          title: Text(title),
        body: Container(
          child: ImageSliderWidget(
            imageUrls: _imageUrls,
            imageBorderRadius: BorderRadius.circular(8.0),

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  simple_slider: ^0.0.2

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:simple_slider/simple_slider.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on May 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.1
  • pana: 0.13.8-dev
  • Flutter: 1.17.0

Health suggestions

Fix lib/simple_slider.dart. (-1 points)

Analysis of lib/simple_slider.dart reported 2 hints:

line 1 col 8: Unused import: 'dart:async'.

line 6 col 8: Unused import: 'package:flutter/services.dart'.

Format lib/dot_indicator.dart.

Run flutter format to format lib/dot_indicator.dart.

Maintenance issues and suggestions

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (cached_network_image, shared_preferences).

Package is getting outdated. (-67.12 points)

The package was last published 87 weeks ago.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
cached_network_image ^0.4.1 0.4.2 2.2.0+1
cupertino_icons ^0.1.2 0.1.3
flutter 0.0.0
shared_preferences ^0.4.2 0.4.3 0.5.7+3
Transitive dependencies
async 2.4.1
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.5
flutter_cache_manager 0.1.2 1.2.2
http 0.11.3+17 0.12.1
http_parser 3.1.4
meta 1.1.8
path 1.7.0
path_provider 0.4.1 1.6.9
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
synchronized 1.5.3+2 2.2.0
term_glyph 1.1.0
typed_data 1.1.6
uuid 1.0.3 2.0.4
vector_math 2.0.8