flutter_skeleton 0.1.0 copy "flutter_skeleton: ^0.1.0" to clipboard
flutter_skeleton: ^0.1.0 copied to clipboard

outdated

Flutter skeleton screen for Android and iOS. Support List, Card and Card-List style. Support light and dark theme.

Flutter Skeleton #

[pub packages] | 中文说明

Flutter skeleton screen.

Example

Example

Example

Usage #

1. Depend

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

dependencies:
  flutter_skeleton: ^0.0.1

2. Install

Run command:

$ flutter packages get

3. Import

Import in Dart code:

import 'package:flutter_skeleton/flutter_skeleton.dart';

4. Display Widget

// list skeleton
ListSkeleton(
  config: SkeletonConfig(
    theme: SkeletonTheme.Light,
    isShowAvatar: false,
    isCircleAvatar: true,
    bottomLinesCount: 3,
    radius: 0.0,
  ),
);

// card skeleton
CardSkeleton(
  config: SkeletonConfig(
    theme: SkeletonTheme.Light,
    isShowAvatar: true,
    isCircleAvatar: false,
    bottomLinesCount: 2,
    radius: 16.0,
  ),
);

// card list skeleton
CardListSkeleton(
  config: SkeletonConfig(
    theme: SkeletonTheme.Dark,
    isShowAvatar: true,
    isCircleAvatar: true,
    bottomLinesCount: 2,
    radius: 0.0,
  ),
);

SkeletonStyle Properties #

Name Type Meaning Default
isAnimation bool if show animation or not true
isShowAvatar bool if show avatar or not true
isCircleAvatar bool if the avatar is circle or not true
barCount int the count of bar 2
borderRadius BorderRadius the radius of container 0
padding EdgeInsets the padding of container 16
colors List gradient color of bar null, specified by theme
backgroundColor Color background color of container null, specified by theme
theme SkeletonTheme pre-install theme SkeletonTheme.Light

Example #

Example sources

Example APK

Example APK Download

33
likes
40
pub points
69%
popularity

Publisher

unverified uploader

Flutter skeleton screen for Android and iOS. Support List, Card and Card-List style. Support light and dark theme.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on flutter_skeleton