File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,11 @@ class Carousel extends StatefulWidget
22
22
Invokable ,
23
23
HasController <MyController , CarouselState > {
24
24
static const type = 'Carousel' ;
25
+
25
26
Carousel ({Key ? key}) : super (key: key);
26
27
27
28
final MyController _controller = MyController ();
29
+
28
30
@override
29
31
MyController get controller => _controller;
30
32
@@ -262,8 +264,7 @@ class CarouselState extends WidgetState<Carousel>
262
264
);
263
265
264
266
// show indicators
265
- if (widget._controller.indicatorType != null &&
266
- widget._controller.indicatorType != IndicatorType .none) {
267
+ if (widget._controller.indicatorType != IndicatorType .none) {
267
268
List <Widget > indicators = buildIndicators (items);
268
269
269
270
List <Widget > children = [
You can’t perform that action at this time.
0 commit comments