intyx_curved_carousel 1.0.0 copy "intyx_curved_carousel: ^1.0.0" to clipboard
intyx_curved_carousel: ^1.0.0 copied to clipboard

A Flutter widget for horizontal scrolling with a 3D curved carousel effect. Items scale and rotate based on scroll position for a perspective carousel.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:intyx_curved_carousel/intyx_curved_carousel.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Curved Carousel Example',
      theme: ThemeData(useMaterial3: true),
      home: const ExamplePage(),
    );
  }
}

class ExamplePage extends StatelessWidget {
  const ExamplePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Curved Carousel')),
      body: SafeArea(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const SizedBox(height: 24),
            CurvedHorizontalScroll(
              itemCount: 8,
              itemWidth: 140,
              itemHeight: 200,
              itemSpacing: 16,
              viewportItemCount: 2,
              itemBuilder: (context, index) {
                final colors = [
                  Colors.blue,
                  Colors.green,
                  Colors.orange,
                  Colors.purple,
                  Colors.teal,
                  Colors.pink,
                  Colors.indigo,
                  Colors.amber,
                ];
                return Container(
                  decoration: BoxDecoration(
                    color: colors[index % colors.length],
                    borderRadius: BorderRadius.circular(16),
                    boxShadow: const [
                      BoxShadow(
                        color: Colors.black26,
                        blurRadius: 8,
                        offset: Offset(0, 4),
                      ),
                    ],
                  ),
                  child: Center(
                    child: Text(
                      '${index + 1}',
                      style: const TextStyle(
                        fontSize: 48,
                        fontWeight: FontWeight.bold,
                        color: Colors.white,
                      ),
                    ),
                  ),
                );
              },
            ),
            const SizedBox(height: 48),
          ],
        ),
      ),
    );
  }
}
2
likes
160
points
87
downloads

Publisher

verified publisherintyx.ai

Weekly Downloads

A Flutter widget for horizontal scrolling with a 3D curved carousel effect. Items scale and rotate based on scroll position for a perspective carousel.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on intyx_curved_carousel