flutter_multi_carousel 1.0.1

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • new63

Flutter_Carosel #

A simple Carousel Widget with multiple configuration option.

...
dependencies:
 ...
 flutter_multi_carousel: ^1.0.1
...

And install it using flutter packages get on your project folder. After that, just import the module and use it:

import 'package:flutter/material.dart';
import 'package:flutter_multi_carousel/carousel.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: CarouselExample(),
    );
  }
}

class CarouselExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Carousel(
            height: 350.0,
            width: 350,
            type: "slideswiper",
            indicatorType: "bubble",
            arrowColor: Colors.white,
            axis: Axis.horizontal,
            showArrow: true,
            children: List.generate(
                7,
                (i) => Center(
                      child: Container(color: Colors.red),
                    ))),
      ),
    );
  }
}

https://github.com/jaiswalshubham84/Flutter-Carousel

Getting Startedslide #

Properties Type Default Value Description
height Double null Defines height of carousel.This field is required
width Double null Defines width of carousel. This field is required
axis Axis Axis.horizontal Defines axis of carousel.
type String "simple" Defines type of carousel.
Available carousel types are: "simple", "slideswiper", "xrotating", "yrotating", "zrotating", "multirotating"
showArrow Bool true choice to show arrow in carousel
arrowColor Color Colors.white Define the color of arrow
showIndicator Bool true Choice to show indicator in carousel
indicatorType String bar Defines the type of indicator.
Available indicator types are: "bar", "dot", "bubble"
activeIndicatorColor Color Colors.white Defines the color of active indicator
unActiveIndicatorColor Color Colors.black Defines the color of unactive indicator
indicatorBackgroundColor Color Color(0xff121212) Defines the background color of indicator
indicatorBackgroundOpacity Double 0.5 Defines the opacity of indicator background


Credits #

Developed by Shubham Jaiswal jaiswal.shubham84@gmail.com

Contributing #

Feel free to Contribute!

For help getting started with Flutter, view our online documentation.

[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.

example/README.md

example #

flutter_multi_carousel example.

Getting Started #

import 'package:flutter/material.dart';
import 'package:flutter_multi_carousel/carousel.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: CarouselExample(),
    );
  }
}

class CarouselExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Carousel(
            height: 350.0,
            width: 350,
            type: "slideswiper",
            indicatorType: "bubble",
            arrowColor: Colors.white,
            axis: Axis.horizontal,
            showArrow: true,
            children: List.generate(
                7,
                (i) => Center(
                      child: Container(color: Colors.red),
                    ))),
      ),
    );
  }
}

https://github.com/jaiswalshubham84/Flutter-Carousel

For help getting started with Flutter, view online documentation, which offers tutorials, samples, guidance on full API reference.

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_multi_carousel: ^1.0.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_multi_carousel/carousel.dart';
  
Version Uploaded Documentation Archive
1.0.1 Mar 5, 2019 Go to the documentation of flutter_multi_carousel 1.0.1 Download flutter_multi_carousel 1.0.1 archive
1.0.0 Mar 5, 2019 Go to the documentation of flutter_multi_carousel 1.0.0 Download flutter_multi_carousel 1.0.0 archive
0.0.1 Mar 5, 2019 Go to the documentation of flutter_multi_carousel 0.0.1 Download flutter_multi_carousel 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
29
Health:
Code health derived from static analysis. [more]
96
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
63
Learn more about scoring.

We analyzed this package on Mar 6, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.3.3

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/src/carousel/carousel.dart. (-0.50 points)

Analysis of lib/src/carousel/carousel.dart reported 1 hint:

line 12 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: Carousel.updateIndicator, Carousel.controller

Fix lib/src/carousel/multi_axis_carousel.dart. (-0.50 points)

Analysis of lib/src/carousel/multi_axis_carousel.dart reported 1 hint:

line 4 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: MultiAxisCarouselState.currentPage, MultiAxisCarouselState.initial

Fix lib/src/carousel/rotatingcarousel.dart. (-0.50 points)

Analysis of lib/src/carousel/rotatingcarousel.dart reported 1 hint:

line 4 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: RotatingCarouselState.currentPage, RotatingCarouselState.initial

Fix additional 5 files with analysis or formatting issues. (-2.50 points)

Additional issues in the following files:

  • lib/src/carousel/simple_carousel.dart (1 hint)
  • lib/src/carousel/slide_swipe.dart (1 hint)
  • lib/src/carousel/x_rotating_carousel.dart (1 hint)
  • lib/src/carousel/zrotatingcarousel.dart (1 hint)
  • lib/src/indicator/widget/dot_indicator.dart (1 hint)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test