carousel_text 0.0.7 copy "carousel_text: ^0.0.7" to clipboard
carousel_text: ^0.0.7 copied to clipboard

CarouselText is a customizable animated text widget for Flutter applications

example/example.dart

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

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(title: const Text("Carousel Text Example")),
        body: const Center(
          child: CarouselText(
            fixedText: "I love",
            rotatingWords: ["Flutter", "Dart", "Coding"],
            animationType: AnimationType.typing, // Change to fade or slide
            typingSpeed: Duration(milliseconds: 100),
            eraseSpeed: Duration(milliseconds: 50),
            stayDuration: Duration(seconds: 2),
            transitionDuration: Duration(milliseconds: 500),
            fixedTextStyle: TextStyle(
              fontSize: 24,
              fontWeight: FontWeight.bold,
            ),
            rotatingTextStyle: TextStyle(fontSize: 24, color: Colors.blue),
            spacing: 10.0,
            loop: true,
            autoStart: true,
          ),
        ),
      ),
    );
  }
}
1
likes
160
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

CarouselText is a customizable animated text widget for Flutter applications

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on carousel_text