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

A flutter package that allows text scrolling after exceeding a given width.

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: ScrollingTextButtonExample(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Test Page"),
      ),
      body: Center(
        child: ScrollingTextButton(
            label: "Click Me, hello I am a test button",
            onPressed: () {
              print("You clicked on the button");
            }),
      ),
    );
  }
}
1
likes
150
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package that allows text scrolling after exceeding a given width.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on scrolling_text_button