animated_keyword_text 1.0.0 copy "animated_keyword_text: ^1.0.0" to clipboard
animated_keyword_text: ^1.0.0 copied to clipboard

A customizable animated text widget that highlights changing keywords with a smooth vertical animation.

example/lib/main.dart

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

void main() {
  runApp(const MaterialApp(home: AnimatedTextDemo()));
}

class AnimatedTextDemo extends StatelessWidget {
  const AnimatedTextDemo({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final keywords = [
      'House Cleaning',
      'Floor Cleaning',
      'Window Washing',
      'Pool Cleaning'
    ];

    return Scaffold(
      backgroundColor: Colors.white,
      body: Center(
        child: Row(
          mainAxisSize: MainAxisSize.min,
          children: [
            const Text("Search for '", style: TextStyle(fontSize: 24)),
            AnimatedKeywordText(
              keywords: keywords,
              textStyle: const TextStyle(color: Colors.orange, fontSize: 24),
            ),
            const Text("'", style: TextStyle(fontSize: 24)),
          ],
        ),
      ),
    );
  }
}
1
likes
140
points
57
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable animated text widget that highlights changing keywords with a smooth vertical animation.

Repository (GitHub)

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_keyword_text