You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unhandled Exception: 'package:flutter/src/widgets/scroll_controller.dart': Failed assertion: line 110 pos 12: '_positions.isNotEmpty': ScrollController not attached to any scroll views.
It shows the below error-
Unhandled Exception: 'package:flutter/src/widgets/scroll_controller.dart': Failed assertion: line 110 pos 12: '_positions.isNotEmpty': ScrollController not attached to any scroll views.
-----------my code-------
Swiper(
//outer: true,
fade:0.0,
viewportFraction: 0.4,
scale: 0.8,
index: widget.temp-totalTempCount,
itemBuilder: (c, i) {
return Center(child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text((setTemperature(i)).toString(), style: TextStyle(fontSize: 48.0, color: AppTheme.whiteTextColor)),
Text("\u00B0"+ "C", style: TextStyle(fontSize: 32.0, color: AppTheme.whiteTextColor)),
]));
},
onIndexChanged: (int index) {
setState(() {
currentIndex = index;
});
widget.tempChangeCallback(totalTempCount + index);
},
itemCount: 15)
The text was updated successfully, but these errors were encountered: