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

outdated

Display skeleton animations in your app. It works on android, iOS and the web.

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: Skeleton(
                              width: 200,
                              height: 14,
                              radius: Radius.circular(6),
                            ),
                            subtitle: Skeleton(
                              width: 200,
                              height: 10,
                              radius: Radius.circular(6),
                            ),
                          ),
                      childCount: 20),
                )
              ],
            )),
      ),
    );
  }
}
33
likes
0
pub points
86%
popularity

Publisher

verified publisherwjtje.dev

Display skeleton animations in your app. It works on android, iOS and the web.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on skeleton_animation