Git Product home page Git Product logo

carousel's People

Contributors

alessandroaime avatar bcko avatar brammittendorff avatar gbrvalerio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

carousel's Issues

suggestion

Thank's for this plugin it very nice.
I think's it will be nicer if the Carousel stop when we TapDown and continue when we tapUp.
I did it in my projet like this!
capture d ecran de 2018-04-10 16-56-18

What do you think?

Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f

I recently updated my version of Dart and when I run the app the console shows the next message

The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f.
Because kaptarapp depends on carousel >=0.1.0 which requires SDK version <2.0.0, version solving failed.
pub get failed (1)

thanks in advance for your help.

ask for code example for Firestore

Hi,
I apologize if this may be off-topic.
I am trying to adapt this library to retrieve a collection of string urls from Firestore instead of local images.
Here is my code,

@override
  Widget build(BuildContext context) {
    var banner = StreamBuilder<QuerySnapshot>(
      stream: firestore.collection('banners').orderBy("sequence").snapshots(),
      builder: (BuildContext context, AsyncSnapshot<QuerySnapshot> snapshot) {
        if (!snapshot.hasData) return Text('Loading...');
        return Carousel(
          displayDuration: const Duration(seconds: 5),
          children: <Widget>[
            ListView(
              children:
                  snapshot.data.documents.map((DocumentSnapshot document) {
                return Image(
                    image: CachedNetworkImageProvider(document['url']),
                    height: 150.0,
                    fit: BoxFit.cover);
              }).toList(),
            ),
          ],
        );
      },
    );

    return Column(
      children: <Widget>[
        banner,
        Container(height: 200.0),
      ],
    );
  }

however I got this error:
'package:carousel/src/Carousel.dart': Failed assertion: line 28 pos 16: 'children.length > 1': is not true.

so is it possible to do so?
any advise would be so thankful.

Add a license

Hey, thanks for the great widget, but it would be even better if you would add a license to it (MIT, Apache, ...) so people can actually use it in their projects. The LICENSE file currently contains nothing. :)

Carousel versioning issues with Flutter upgrade

After upgrading my flutter version, i notice that my carousel code breaks.
Here is the error generated:
The current Dart SDK version is 2.1.0-dev.5.0.flutter-a2eb050044.

Because package depends on carousel any which requires SDK version <2.0.0, version solving failed.

pub get failed (1)

A TabController was used after being disposed.

Unhandled exception when activity finish
A TabController was used after being disposed. Once you have called dispose() on a TabController, it can no longer be used. #0 ChangeNotifier._debugAssertNotDisposed.<anonymous closure> (package:flutter/src/foundation/change_notifier.dart:61:9) #1 ChangeNotifier._debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:67:6) #2 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:155:12) #3 TabController._changeIndex.<anonymous closure> (package:flutter/src/material/tab_controller.dart:124:11) #4 TickerFuture.whenCompleteOrCancel.thunk (package:flutter/src/scheduler/ticker.dart:390:15) #5 _RootZone.runUnary (dart:async/zone.dart:1381:54) #6 _FutureListener.handleError (dart:async/future_impl.dart:147:20) #7 Future._propagateToListeners.handleError (dart:async/future_impl.dart:650:47) #8 Future._propagateToListeners (dart:async/future_impl.dart:671:24) #9 <โ€ฆ>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.