Questions tagged [flutter-slider]
52 questions
0
votes
1 answer
flutter how to remove gap from left side in CarouselSlider
I want to show the all images from the API in the carousel and for items, I want to show 2 items per slide. and it works correctly what I want. but at the first item, it gives me a gap from the left side. anyone know how can i remove this gap from…

RAF Algowid
- 87
- 2
- 6
0
votes
2 answers
flutter RangeError (index): Invalid value: Not in inclusive range 0..4: 5 on CarouselSlider
I want to show the all images from the API in the carousel and for items, I want to show 2 items per slide.
and it works correctly what I want. but in every last item, it shows me the error of CarouselSlider. I don't know why it gives me this error.…

RAF Algowid
- 87
- 2
- 6
0
votes
0 answers
Flutter CarouselSlider shows Invalid value and wants to show only 3 items per slide
I want to show 3 items per slide in CarouselSlider I have data from API which returns the image from the database.
But as per userid I got only one item in the database but CarouselSlider does not show then and gives me the error of RangeError…

RAF Algowid
- 87
- 2
- 6
0
votes
1 answer
How to update flutter RangeSlider values which comes from database
I have static values of RangeSlider now I have to update the values and set them from static to dynamic. but I don't know how to do this please help to show and update the RangeSlider values from the database.
I have two vlaues from the database for…

RAF Algowid
- 87
- 2
- 6
0
votes
2 answers
Flutter Failed assertion: 'value >= min && value <= max': is not true. in slider
I want to get the dynamic data from the database to the slider value.
But firstly it gives me the error of value type double so I convert my string data to double and now it gives me the error of.
Failed assertion: line 147 pos 15: 'value >= min &&…

RAF Algowid
- 87
- 2
- 6
0
votes
0 answers
I have problems with Slider's inside a PageView
I have a number of setup pages inside a PageView. Se example page.
On some of these pages I am using Slider's.
This works quite ok on IOS but on Android sliding the value does not slide the value but instead the page. I.e. the slider is useless.
On…

Gunnar Eketrapp
- 2,009
- 1
- 19
- 33
0
votes
1 answer
When i update slider in a ListView.Builder it updates all sliders at once
I have a list of sliders in my listview.builder, when I slide one slider, it automatically updates the rest of the sliders with the same value. I want each slider to update its value independently
class ApplyForMeScreen extends StatefulWidget {
…

Dingaan Letjane
- 35
- 6
0
votes
1 answer
How to set an empty initial value for Flutter Slider?
Currently the "value" property of Slider is required, however I was wondering if it is possible to create a Slider such that it initially has no value and the thumb is hidden. Then when the user presses along the line, the thumb appears at that…

Charles
- 638
- 2
- 9
- 23
0
votes
0 answers
How to change height and width of SfSlider in flutter?
I am using -> SfSlider library to create a slider. To change the size of thumb, i just change the thumbIcon inside it by creating a Container(height:20, width:10,).
But i think its height and width are not reflecting when i change the Container()…

Rakesh Saini
- 660
- 2
- 7
- 20
0
votes
0 answers
How to stop loop in flutter card swiper with assets audio player?
I made slide learning app but slide was looping playing continuously
I need to stop auto play it reaches the end.
I'm using card_swiper: ^1.0.2
I update my full code is here -I'm also using a Assets audio player
I try loop: false it won't…
user10993979
0
votes
2 answers
Changing thumb color of slider in flutter
I am trying to change the thumb color of my slider.
Here is my code:
SliderTheme(
data: SliderThemeData(
thumbColor: Colors.pink,
),
child: Slider(
…

Aditya
- 325
- 6
- 19
0
votes
1 answer
How to make reusable widget in flutter card swiper?
I'm attempting to use the Flutter Swiper with different parameters on the same page, however I'm unsure how to structure the code.
I want this same code in Multiple Pages I was tried several way but it doesn't work.
So I want make this Widget as…
user10993979
0
votes
1 answer
Flutter - How to add a widget inside the track of a Slider widget
I have a simple Slider widget and I want to add multiple containers inside the track at different points.
Needed Outcome Image
Current Code
Slider(
max: 500,
value: _playerValue,
onChanged: (double value){
setState(() {
…

Rezia
- 35
- 1
- 6
0
votes
0 answers
Why parent class is accepting color from child?
I'm working on Slider, I want to change the thumb color, but this is not working. thumbColor accepts color from Child:Slider activeColor.
SliderTheme(
data:SliderTheme.of(context).copyWith(
// thumbShape:…

Aizan Sagheer
- 349
- 3
- 8
0
votes
0 answers
Slider onChangeEnd property doesn't work properly
I want to save to Firestore the last slider value after changes. I tried to do that using onChangeEnd, but instead of last value, I get first picked value.
Examples
What I want to get:
Current slider position is 3. I want to press 3 on slider and…

llama_glama
- 37
- 7