Skip to content

Commit b3ad2e4

Browse files
committed
Carousel indicator should be enabled by default
1 parent dedb23a commit b3ad2e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/widget/carousel.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ class Carousel extends StatefulWidget
2222
Invokable,
2323
HasController<MyController, CarouselState> {
2424
static const type = 'Carousel';
25+
2526
Carousel({Key? key}) : super(key: key);
2627

2728
final MyController _controller = MyController();
29+
2830
@override
2931
MyController get controller => _controller;
3032

@@ -262,8 +264,7 @@ class CarouselState extends WidgetState<Carousel>
262264
);
263265

264266
// show indicators
265-
if (widget._controller.indicatorType != null &&
266-
widget._controller.indicatorType != IndicatorType.none) {
267+
if (widget._controller.indicatorType != IndicatorType.none) {
267268
List<Widget> indicators = buildIndicators(items);
268269

269270
List<Widget> children = [

0 commit comments

Comments
 (0)