scroll_texts_widget 0.0.1 copy "scroll_texts_widget: ^0.0.1" to clipboard
scroll_texts_widget: ^0.0.1 copied to clipboard

A highly efficient and modular Flutter widget for creating scrolling marquee text banners.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Scroll Texts Example',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const MyMarqueeApp(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Efficient Marquee Demo')),
      body: Center(
        child: Container(
          padding: const EdgeInsets.symmetric(vertical: 8.0),
          color: Colors.blueGrey.shade100,
          child: ScrollTextsWidget(
            texts: const [
              'Welcome to the highly efficient Flutter scroll text package.',
              'This text will scroll at a consistent 75 pixels per second!',
            ],
            textStyle: const TextStyle(
              fontSize: 30.0,
              fontWeight: FontWeight.bold,
              color: Colors.deepPurple,
            ),
            scrollSpeed: 75.0, // 75 pixels per second
            pauseDuration: const Duration(seconds: 1),
            // Example of RTL usage
            // textDirection: TextDirection.rtl,
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
27
downloads

Publisher

verified publishershakyapurna.com.np

Weekly Downloads

A highly efficient and modular Flutter widget for creating scrolling marquee text banners.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on scroll_texts_widget