no_shimmer 0.0.2 copy "no_shimmer: ^0.0.2" to clipboard
no_shimmer: ^0.0.2 copied to clipboard

A simple colored box widget, typically used for showing loading indicator. This is the opposite of shimmer, which has no animation/effects.

NoShimmer #

A simple colored box widget, typically used for showing loading indicator. This is the opposite of shimmer, which has no animation/effects.

This widget is aimed to replace Container for creating a single colored box. Why? Because Container cannot be created using the const keyword.

Using #

import 'package:no_shimmer/no_shimmer.dart'
const NoShimmer(
    width: 200, // optional, defaults to BoxConstraints.maxWidth
    height: 200, // optional, defaults to BoxConstraints.maxHeight
    color: Colors.grey, // optional, defaults to Colors.grey[200]
    padding: EdgeInsets.all(10), // optional
    borderRadius: BorderRadius.all(Radius.circular(20)), // optional
);

Note that to use borderRadius with the const keyword available, define borderRadius with any BorderRadius constructors but the BorderRadius.circular.

0
likes
90
pub points
0%
popularity

Publisher

unverified uploader

A simple colored box widget, typically used for showing loading indicator. This is the opposite of shimmer, which has no animation/effects.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on no_shimmer