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

discontinued
outdated

A fluter plugin to make nice animated shimmer content placeholders.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:content_placeholder/content_placeholder.dart';

void main() => runApp(App());

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: SafeArea(
          child: Padding(
            padding: EdgeInsets.all(20),
            child: Column(
              children: <Widget>[
                ContentPlaceholder(
                  isAnimationEnabled: false,
                ),
                ContentPlaceholder(),
                ContentPlaceholder(
                  height: 20,
                ),
                ContentPlaceholder(
                  context: context,
                  child: Column(
                    children: <Widget>[
                      ContentPlaceholder.block(),
                      ContentPlaceholder.block(
                        height: 100,
                      ),
                    ],
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
19
likes
40
pub points
51%
popularity

Publisher

verified publisherchandujs.dev

A fluter plugin to make nice animated shimmer content placeholders.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, shimmer

More

Packages that depend on content_placeholder