Skip to content

Commit

Permalink
docs : README
Browse files Browse the repository at this point in the history
  • Loading branch information
LinXunFeng committed Feb 16, 2023
1 parent fd3f506 commit 7753e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
13 changes: 1 addition & 12 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,7 @@ GridView.builder(padding: _padding, ...);
observerController.jumpTo(index: 1, padding: _padding);
```

以下这种则不需要
```dart
CustomScrollView(
controller: scrollController,
slivers: [
const SliverPadding(padding: _padding),
_buildSliverListView(),
_buildSliverGridView(),
const SliverPadding(padding: _padding),
],
);
```
⚠ 请不要在 `CustomScrollView` 中使用 `SliverPadding`

#### 2.3、`isFixedHeight` 参数

Expand Down
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,18 +272,7 @@ GridView.builder(padding: _padding, ...);
observerController.jumpTo(index: 1, padding: _padding);
```

It is not necessary in the following cases
```dart
CustomScrollView(
controller: scrollController,
slivers: [
const SliverPadding(padding: _padding),
_buildSliverListView(),
_buildSliverGridView(),
const SliverPadding(padding: _padding),
],
);
```
⚠ Do not use `SliverPadding` in `CustomScrollView`.

#### 2.3、Parameter `isFixedHeight`

Expand Down

0 comments on commit 7753e6a

Please sign in to comment.