Skip to content

Commit

Permalink
Create shimmer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mu-dawood authored Mar 3, 2023
1 parent d9830e8 commit beb23b2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/en/shimmer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
### Fisrt you need your widgets with `ShimmerScope`
### Every widget must be wrapped with `Shimmer`

```dart
ShimmerScope(
child: List(children:[
Shimmer(child: Card(child:Text("Item 1"))),
Shimmer(child: Card(child:Text("Item 2"))),
Shimmer(child: Card(child:Text("Item 3"))),
Shimmer(child: Card(child:Text("Item 4"))),
])
)
```

### enable or disable effect

```dart
Shimmer(
enabled: true | false,
child: Card(
child: Text("Item 1")
)
),
```

0 comments on commit beb23b2

Please sign in to comment.