Tweak style

This commit is contained in:
Ming Ming 2021-10-05 03:29:01 +08:00
parent 84b06a5cdd
commit 4b590e85ba
2 changed files with 16 additions and 22 deletions

View file

@ -194,9 +194,7 @@ class _AlbumBrowserState extends State<AlbumBrowser>
controller: _scrollController,
slivers: [
_buildAppBar(context),
SliverPadding(
padding: const EdgeInsets.only(top: 8),
sliver: isEditMode
isEditMode
? buildDraggableItemList(
maxCrossAxisExtent: thumbSize.toDouble(),
onMaxExtentChanged: (value) {
@ -206,7 +204,6 @@ class _AlbumBrowserState extends State<AlbumBrowser>
: buildItemStreamList(
maxCrossAxisExtent: thumbSize.toDouble(),
),
),
],
);
if (isEditMode) {

View file

@ -196,9 +196,7 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
child: CustomScrollView(
slivers: [
_buildAppBar(context),
SliverPadding(
padding: const EdgeInsets.only(top: 8),
sliver: SliverIgnorePointer(
SliverIgnorePointer(
ignoring: isEditMode,
sliver: SliverOpacity(
opacity: isEditMode ? .25 : 1,
@ -207,7 +205,6 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
),
),
),
),
],
),
),