skeleton_animation 0.0.1 copy "skeleton_animation: ^0.0.1" to clipboard
skeleton_animation: ^0.0.1 copied to clipboard

outdated

Display a skeleton animation in your app.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:skeleton_animation/skeleton_animation.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Skeleton animation'),
        ),
        body: Container(
          padding: EdgeInsets.symmetric(horizontal: 16.0),
          child: CustomScrollView(
            slivers: [
              SliverList(
                delegate: SliverChildBuilderDelegate(
                  (context, i) => ListTile(
                    title: SkeletonAnimation(
                      width: 200,
                      height: 14,
                      radius: Radius.circular(6),
                    ),
                    subtitle: SkeletonAnimation(
                      width: 200,
                      height: 10,
                      radius: Radius.circular(6),
                    ),
                  ),
                  childCount: 20
                ),
              )
            ],
          )
        ),
      ),
    );
  }
}
32
likes
0
pub points
89%
popularity

Publisher

verified publisherwjtje.dev

Display a skeleton animation in your app.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on skeleton_animation