diff --git a/README-zh.md b/README-zh.md index 5918c4b..5bb9549 100644 --- a/README-zh.md +++ b/README-zh.md @@ -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` 参数 diff --git a/README.md b/README.md index fef91de..78210b3 100644 --- a/README.md +++ b/README.md @@ -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`