diff --git a/lib/screens/explore.dart b/lib/screens/explore.dart index 52f5be6..a8204a7 100644 --- a/lib/screens/explore.dart +++ b/lib/screens/explore.dart @@ -108,10 +108,10 @@ class _ExploreScreenState extends State RealmSwitcher(), ], ).paddingSymmetric(horizontal: 8), - ), + ).paddingSymmetric(vertical: 4), TabBar( controller: _tabController, - dividerHeight: 0.3, + dividerHeight: scrollProgress > 0 ? 0 : 0.3, tabAlignment: TabAlignment.fill, tabs: [ Tab( @@ -138,8 +138,10 @@ class _ExploreScreenState extends State child: Row( mainAxisSize: MainAxisSize.min, children: [ - const Icon(Icons.shuffle_on_outlined, - size: 20), + const Icon( + Icons.shuffle_on_outlined, + size: 20, + ), const Gap(8), Text('postListShuffle'.tr), ], @@ -151,7 +153,7 @@ class _ExploreScreenState extends State ).paddingOnly(top: MediaQuery.of(context).padding.top), ), ), - expandedHeight: 96, + expandedHeight: 104, snap: true, floating: true, toolbarHeight: AppTheme.toolbarHeight(context), diff --git a/lib/screens/posts/post_editor.dart b/lib/screens/posts/post_editor.dart index 04d1d5e..0e00902 100644 --- a/lib/screens/posts/post_editor.dart +++ b/lib/screens/posts/post_editor.dart @@ -182,7 +182,10 @@ class _PostPublishScreenState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ ListTile( - tileColor: Theme.of(context).colorScheme.surfaceContainerLow, + tileColor: Theme.of(context) + .colorScheme + .surfaceContainerLow + .withOpacity(0.5), title: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ diff --git a/lib/widgets/attachments/attachment_list.dart b/lib/widgets/attachments/attachment_list.dart index f634a92..bebf8f2 100644 --- a/lib/widgets/attachments/attachment_list.dart +++ b/lib/widgets/attachments/attachment_list.dart @@ -186,10 +186,7 @@ class _AttachmentListState extends State { if (widget.isFullWidth && _attachments.length == 1) { final element = _attachments.first; - double ratio = math.max( - element!.metadata?['ratio']?.toDouble() ?? 16 / 9, - 0.5, - ); + double ratio = element!.metadata?['ratio']?.toDouble() ?? 16 / 9; return Container( width: MediaQuery.of(context).size.width, constraints: BoxConstraints( @@ -199,6 +196,10 @@ class _AttachmentListState extends State { aspectRatio: ratio, child: Container( decoration: BoxDecoration( + color: Theme.of(context) + .colorScheme + .surfaceContainer + .withOpacity(0.5), border: Border.symmetric( horizontal: BorderSide( color: Theme.of(context).dividerColor, @@ -231,7 +232,10 @@ class _AttachmentListState extends State { final element = _attachments[idx]; return Container( decoration: BoxDecoration( - color: Theme.of(context).colorScheme.surfaceContainerHigh, + color: Theme.of(context) + .colorScheme + .surfaceContainer + .withOpacity(0.5), border: Border.all( color: Theme.of(context).dividerColor, width: 1, @@ -256,10 +260,7 @@ class _AttachmentListState extends State { final element = _attachments[idx]; idx++; if (element == null) return const SizedBox.shrink(); - double ratio = math.max( - element.metadata?['ratio']?.toDouble() ?? 16 / 9, - 0.5, - ); + double ratio = element.metadata?['ratio']?.toDouble() ?? 16 / 9; return Container( constraints: BoxConstraints( maxWidth: widget.columnMaxWidth, @@ -269,6 +270,10 @@ class _AttachmentListState extends State { aspectRatio: ratio, child: Container( decoration: BoxDecoration( + color: Theme.of(context) + .colorScheme + .surfaceContainer + .withOpacity(0.5), border: Border.all( color: Theme.of(context).dividerColor, width: 1, @@ -298,10 +303,7 @@ class _AttachmentListState extends State { itemBuilder: (context, idx) { final element = _attachments[idx]; if (element == null) const SizedBox.shrink(); - double ratio = math.max( - element!.metadata?['ratio']?.toDouble() ?? 16 / 9, - 0.5, - ); + final ratio = element!.metadata?['ratio']?.toDouble() ?? 16 / 9; return Container( constraints: BoxConstraints( maxWidth: math.min( @@ -314,6 +316,10 @@ class _AttachmentListState extends State { aspectRatio: ratio, child: Container( decoration: BoxDecoration( + color: Theme.of(context) + .colorScheme + .surfaceContainer + .withOpacity(0.5), border: Border.all( color: Theme.of(context).dividerColor, width: 1,