Skip to content

derrick56007/shimmr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shimmr

pub package License

A simple way to bring beautiful shimmer animations to flutter.

Shimmer animations are commonly used in loading screens or as placeholder widgets. Shimmr is easy to customize and is ready to use for iOS, Android, and Web.

Examples

An example can be found in the example directory of this repository.

How to use

Add shimmr to pubspec.yaml of your project:

dependencies:
  shimmr: ^0.0.1

Import it in your Dart code:

import 'package:shimmr/shimmr.dart';

Wrap any widget with Shimmr() widget to apply animaton:

  Shimmr(
    duration: Duration(seconds: 2),
    borderRadius: BorderRadius.circular(5),
    foregroundColor: Colors.grey.withAlpha(150),
    backgroundColor: Colors.transparent,
    delay: Duration(milliseconds: 200),
  ),

License

MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published