shimmer_animation 2.0.0 copy "shimmer_animation: ^2.0.0" to clipboard
shimmer_animation: ^2.0.0 copied to clipboard

outdated

This animation widget can help you bring simple yet beutiful animations to your project with ease.

example/lib/main.dart

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

void main() {
  runApp(FullPageShimmerExample());
}

class FullPageShimmerExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: ShimmerPage(),
    );
  }
}

class ShimmerPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Shimmer(
        //Default value
        duration: Duration(seconds: 3),
        //Default value: Duration(seconds: 0)
        interval: Duration(seconds: 5),
        //Default value
        color: Colors.white,
        //Default value
        enabled: true,
        //Default value
        direction: ShimmerDirection.fromLTRB(),
        child: Container(
          color: Colors.deepPurple,
        ),
      ),
    );
  }
}
417
likes
0
pub points
99%
popularity

Publisher

unverified uploader

This animation widget can help you bring simple yet beutiful animations to your project with ease.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on shimmer_animation