An open API service indexing awesome lists of open source software.

https://github.com/bitinfinitywebsolutions/flutter_content_placeholder

A Flutter Content Placeholder plugin to make nice animated shimmer content placeholders. This plugin uses shimmer flutter plugin for shimmer animation.
https://github.com/bitinfinitywebsolutions/flutter_content_placeholder

content flutter placeholder

Last synced: 9 months ago
JSON representation

A Flutter Content Placeholder plugin to make nice animated shimmer content placeholders. This plugin uses shimmer flutter plugin for shimmer animation.

Awesome Lists containing this project

README

          

# Flutter Content Placeholder

[![pub package](https://img.shields.io/pub/v/shimmer.svg)](https://pub.dartlang.org/packages/shimmer)
[![](https://img.shields.io/badge/license-MIT-green)](https://github.com/bitinfinitywebsolutions/flutter_content_placeholder/blob/master/LICENSE)

A Flutter Content Placeholder plugin to make nice animated shimmer content placeholders. This plugin
uses shimmer flutter plugin for shimmer animation.

## How to use

#### 1. Depend on it

Add this to your package's pubspec.yaml file:

```
dependencies:
flutter_content_placeholder: ^0.0.3
```

#### 2. Install it

You can install packages from the command line:

with Flutter:

```
$ flutter pub add flutter_content_placeholder
```

Alternatively, your editor might support `flutter packages get`. Check the docs for your editor to
learn more.

#### 3. Import it

Now in your Dart code, you can use:

```dart
import 'package:flutter_content_placeholder/flutter_content_placeholder.dart';
```

#### 4. Use it

Now in your Dart code, you can use:

```dart
ContentPlaceholder.block
(
width: 100,
height: 100,
rightSpacing: 10,
)
```