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,19 +194,16 @@ class _AlbumBrowserState extends State<AlbumBrowser>
controller: _scrollController, controller: _scrollController,
slivers: [ slivers: [
_buildAppBar(context), _buildAppBar(context),
SliverPadding( isEditMode
padding: const EdgeInsets.only(top: 8), ? buildDraggableItemList(
sliver: isEditMode maxCrossAxisExtent: thumbSize.toDouble(),
? buildDraggableItemList( onMaxExtentChanged: (value) {
maxCrossAxisExtent: thumbSize.toDouble(), _itemListMaxExtent = value;
onMaxExtentChanged: (value) { },
_itemListMaxExtent = value; )
}, : buildItemStreamList(
) maxCrossAxisExtent: thumbSize.toDouble(),
: buildItemStreamList( ),
maxCrossAxisExtent: thumbSize.toDouble(),
),
),
], ],
); );
if (isEditMode) { if (isEditMode) {

View file

@ -196,15 +196,12 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
child: CustomScrollView( child: CustomScrollView(
slivers: [ slivers: [
_buildAppBar(context), _buildAppBar(context),
SliverPadding( SliverIgnorePointer(
padding: const EdgeInsets.only(top: 8), ignoring: isEditMode,
sliver: SliverIgnorePointer( sliver: SliverOpacity(
ignoring: isEditMode, opacity: isEditMode ? .25 : 1,
sliver: SliverOpacity( sliver: buildItemStreamList(
opacity: isEditMode ? .25 : 1, maxCrossAxisExtent: thumbSize.toDouble(),
sliver: buildItemStreamList(
maxCrossAxisExtent: thumbSize.toDouble(),
),
), ),
), ),
), ),