carousel_navigator 0.0.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 66

CarouselNavigator #

An attempt to make the spotlight_carousel written by dnys1 - Dillon Nys more flexible and responsive.

Simply call the SpotlightCarousel build method, and enter the required parameters.

class MyCarousel extends StatelessWidget {
  MyCarousel({this.children});
  
  @override
  Widget build(BuildContext context) {
    return SpotlightCarousel(
      children: children,
      titles: null,
      descriptions: null,
      onTapped: null,
    );
  }
}

Simply include 2 or more children for the Carousel. You may surround this with a container in order to limit the height or width.

[0.0.3] - Alpha [8/26/19] - [present]

  • Runnable examples

[0.0.2] - Pre-Alpha [8/22/19] - [8/26/19]

  • Formatting updates, no content change.

[0.0.1] - Pre-Alpha [8/19/19] - [8/22/19]

  • Basic functionality and formatting

To-do list: #

  • Let users be able to swipe over items in the Carousel in order to move it. It currently gets stuck.
  • Prevent tapping on items in the carousel that are too far away
  • Customize the shape and size of the carousel
  • Introduce more customization to individual items on the carousel

Completed: #

  • Introduce examples for the package [8/26/19]
  • Develop some complex examples for the package [8/22/19]
  • Allow the Carousel to include more than just Images. Full Widget support would be ideal. [8/21/19]
  • Allow Carousel items to be clicked via an InkWell by default. Without this functionality, a carousel is just a fancy tab scroll bar. [8/21/19]

example/README.md

Examples #

Examples of how to use the dynamic carousel

Provided examples: #

  1. Basic Carousel
    • 5 static icons used as children
    • Clickable, no action performed
    • Cannot be swiped on top of, will fix in later release
  2. Dynamic Carousel
    • 5 Dynamic pages that shift with the carousel
    • Animations included
    • Carousel items cannot be tapped, but can be swiped

ToDo #

  • [ ] Improve sample clarity
  • [ ] Increase amount of samples provided
  • [ ] Include adjustments to samples as package improves

Use this package as a library

1. Depend on it

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


dependencies:
  carousel_navigator: ^0.0.3

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:carousel_navigator/page_indicator.dart';
import 'package:carousel_navigator/spotlight_carousel.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
35
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
66
Learn more about scoring.

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

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test