gbrvalerio / carousel Goto Github PK
View Code? Open in Web Editor NEWA flutter Carousel Widget
License: MIT License
A flutter Carousel Widget
License: MIT License
From @ranjannisha on September 10, 2018 9:7
URL: https://pub.dartlang.org/packages/carousel
I upgraded my flutter today and got an issue
The current Dart SDK version is 2.1.0-dev.1.0.flutter-ccb16f7282.
Because breadfruit depends on carousel >=0.1.0 which requires SDK version <2.0.0, version solving failed.
Copied from original issue: dart-lang/pub-dev#1593
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.
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.
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. :)
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)
i found some code example here , is it possible to adapt it to your library?
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 <โฆ>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.