Вы можете использовать пакет https://pub.dev/packages/flutter_multi_carousel
фрагмент кода
Center(
child: Carousel(
height: 350.0,
width: 350,
type: "slideswiper",
indicatorType: "bar",
arrowColor: Colors.white,
axis: Axis.horizontal,
showArrow: true,
children: List.generate(
7,
(i) => Center(
child: Container(color: Colors.red),
))),
),
рабочая демоверсия
полный код
import 'package:flutter/material.dart';
import 'package:flutter_multi_carousel/carousel.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Carousel Demo',
home: CarouselExample(),
);
}
}
class CarouselExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Carousel(
height: 350.0,
width: 350,
type: "slideswiper",
indicatorType: "bar",
arrowColor: Colors.white,
axis: Axis.horizontal,
showArrow: true,
children: List.generate(
7,
(i) => Center(
child: Container(color: Colors.red),
))),
),
);
}
}