Comments (6)
Hi @stormenergy91,
Thank you for using this package.
I will look into this issue and will fix it in the next update.
Thanks again for raising the issue.
from flutter_carousel_widget.
Thanks @nixrajput, is a great plugin. If you need more info or some testing I'm here!
from flutter_carousel_widget.
Hi @stormenergy91,
Can you please share some code snippets for testing the changes you want in the package?
from flutter_carousel_widget.
@nixrajput as you can see in this image, on the left there is the actual result, on the right what I want to have:
Here the code that I have used:
ListView(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
...
FutureBuilder(
future: items,
builder: (context, AsyncSnapshot snapshot) {
List<CustomhView> itemsList = [];
if (snapshot.connectionState == ConnectionState.waiting) {
return Container(
height: 200,
child: Center(
child: CircularProgressIndicator(),
),
);
} else {
if (snapshot.hasError) {
return const Text("Network Error");
} else {
if (snapshot.data.length == 0) {
return const Text("No Items");
} else {
for (var i = 0; i < snapshot.data.length; i++) {
itemsList.add(CustomView(snapshot.data[i]));
}
return FlutterCarousel(
items: itemsList,
options: CarouselOptions(
viewportFraction: 0.70,
height: 280.0,
showIndicator: false,
pageSnapping: false,
disableCenter: true,
enableInfiniteScroll: false,
slideIndicator: CircularSlideIndicator(),
),
);
}
}
}
}),
...
],
),
],
)
The property disableCenter
what is used for?
from flutter_carousel_widget.
Hi @stormenergy91,
I checked and tested the code and I found that no additional change requires in the code for this issue.
In your case, you can use padEnds
property to false
.
CarouselOptions(
viewportFraction: 0.70,
height: 280.0,
showIndicator: false,
padEnds: false,
enableInfiniteScroll: false,
slideIndicator: CircularSlideIndicator(),
),
Thanks
from flutter_carousel_widget.
Thanks so much! :)
from flutter_carousel_widget.
Related Issues (20)
- Error: Method 'readState' cannot be called on 'PageStorageBucket?' because it is potentially null HOT 7
- [QUESTION] How do we use this with Android TV remote? HOT 1
- State null error with controller HOT 1
- Stateful widget not being restored with ValueKey HOT 4
- Indicator not working properly for last item when using padEnds : false with viewportFraction less than 1
- carouselController is missing from CarouselOptions function definition HOT 1
- how remove 'setState' error log? HOT 2
- set custom slide indicator HOT 1
- [Bug]: [3.7.12] page changed reason is always controller. HOT 1
- [Bug]: Infinite-scrolling carousels get out of sync with their indicators.
- [Feature Request]: Maximum height value HOT 2
- [Feature Request]: Make image transitions smooth HOT 1
- License HOT 2
- [Bug]: Indicator remains half-filled when padEnds: false HOT 1
- Portrait images do not fill the available space on iPad
- [Bug]: it crashes
- Feature: Tap indicator change slider HOT 3
- [Bug]: The original package is not listed in the license. HOT 1
- [Feature Request]: Itens with shadowed borders
- [Feature Request]: Expose SlideIndicator contract
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_carousel_widget.