skeleton_animation 0.0.3 copy "skeleton_animation: ^0.0.3" to clipboard
skeleton_animation: ^0.0.3 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(
                              style: SkeletonStyle.text,
                              height: 14.0,
                            ),
                            subtitle: Skeleton(
                              style: SkeletonStyle.text,
                              height: 10.0,
                            ),
                            onTap: () {},
                          ),
                      childCount: 20),
                )
              ],
            )),
      ),
      // enable dark mode
      darkTheme: ThemeData(brightness: Brightness.dark),
    );
  }
}
32
likes
0
pub points
85%
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