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

flutter awesome textscramble.

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Scrable Text',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: const Color(0xff06000f),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: const <Widget>[
            ScrambleText(
              texts: ["Scramble Text", "Awesome", "Text Plugin"],
              style: TextStyle(
                color: Color(0xffee3b6a),
                fontSize: 30,
              ),
              loop: true,
              words: "##*^(K:LO}}{{{",
              duration: Duration(seconds: 3),
              charDuraction: Duration(milliseconds: 400),
            ),
          ],
        ),
      ),
      // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
3
likes
140
points
19
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

flutter awesome textscramble.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on scrambletext