widget_marquee 0.0.8 copy "widget_marquee: ^0.0.8" to clipboard
widget_marquee: ^0.0.8 copied to clipboard

A marquee for animating looping through widgets horizontally

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        body: Center(
          child: Container(
            margin: const EdgeInsets.symmetric(horizontal: 20),
            child: const Marquee(
              delay: Duration(milliseconds: 3000),
              duration: Duration(milliseconds: 8000),
              child: Text(
                'Very long text that bleeds out of the rendering space',
              ),
            ),
          ),
        ),
      ),
    );
  }
}
13
likes
150
points
811
downloads

Publisher

verified publisherstatefulstudio.com

Weekly Downloads

A marquee for animating looping through widgets horizontally

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on widget_marquee