Skip to content

qoob23/flutter_shimmer

 
 

Repository files navigation

Shimmer

Forked from hnvn/flutter_shimmer.

A package provides an easy way to add shimmer effect in Flutter project.

Note: When using multiple synchronized shimmers, glares will start in the same position. This is possible to end up with the following shape (where slash is a glare):

--/
-/
/
--/
-/
/

How to use

import 'package:shimmer/shimmer.dart';
SizedBox(
  width: 200.0,
  height: 100.0,
  child: Shimmer.fromColors(
    baseColor: Colors.red,
    highlightColor: Colors.yellow,
    child: Text(
      'Shimmer',
      textAlign: TextAlign.center,
      style: TextStyle(
        fontSize: 40.0,
        fontWeight:
        FontWeight.bold,
      ),
    ),
  ),
);

About

A package provides an easy way to add shimmer effect in Flutter project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 84.1%
  • Ruby 8.6%
  • Objective-C 3.3%
  • Java 1.8%
  • Swift 1.7%
  • Kotlin 0.5%