mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Tweak style
This commit is contained in:
parent
84b06a5cdd
commit
4b590e85ba
2 changed files with 16 additions and 22 deletions
|
@ -194,19 +194,16 @@ class _AlbumBrowserState extends State<AlbumBrowser>
|
|||
controller: _scrollController,
|
||||
slivers: [
|
||||
_buildAppBar(context),
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.only(top: 8),
|
||||
sliver: isEditMode
|
||||
? buildDraggableItemList(
|
||||
maxCrossAxisExtent: thumbSize.toDouble(),
|
||||
onMaxExtentChanged: (value) {
|
||||
_itemListMaxExtent = value;
|
||||
},
|
||||
)
|
||||
: buildItemStreamList(
|
||||
maxCrossAxisExtent: thumbSize.toDouble(),
|
||||
),
|
||||
),
|
||||
isEditMode
|
||||
? buildDraggableItemList(
|
||||
maxCrossAxisExtent: thumbSize.toDouble(),
|
||||
onMaxExtentChanged: (value) {
|
||||
_itemListMaxExtent = value;
|
||||
},
|
||||
)
|
||||
: buildItemStreamList(
|
||||
maxCrossAxisExtent: thumbSize.toDouble(),
|
||||
),
|
||||
],
|
||||
);
|
||||
if (isEditMode) {
|
||||
|
|
|
@ -196,15 +196,12 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
|
|||
child: CustomScrollView(
|
||||
slivers: [
|
||||
_buildAppBar(context),
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.only(top: 8),
|
||||
sliver: SliverIgnorePointer(
|
||||
ignoring: isEditMode,
|
||||
sliver: SliverOpacity(
|
||||
opacity: isEditMode ? .25 : 1,
|
||||
sliver: buildItemStreamList(
|
||||
maxCrossAxisExtent: thumbSize.toDouble(),
|
||||
),
|
||||
SliverIgnorePointer(
|
||||
ignoring: isEditMode,
|
||||
sliver: SliverOpacity(
|
||||
opacity: isEditMode ? .25 : 1,
|
||||
sliver: buildItemStreamList(
|
||||
maxCrossAxisExtent: thumbSize.toDouble(),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue